[libgdata/libgdata-0-7] core: Store the maximum number of results as an unsigned int in GDataQuery



commit d50fcbe3a305808ed9adbc35059f158f801e2078
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sat Nov 27 21:47:46 2010 +0000

    core: Store the maximum number of results as an unsigned int in GDataQuery
    
    The external interface was accepting unsigned values, but was storing them
    as signed internally, leading to interesting things happening when G_MAXUINT
    was passed as max-results, as recommended by the documentation.

 gdata/gdata-query.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdata/gdata-query.c b/gdata/gdata-query.c
index 5d34816..b70605b 100644
--- a/gdata/gdata-query.c
+++ b/gdata/gdata-query.c
@@ -64,7 +64,7 @@ struct _GDataQueryPrivate {
 	gint64 published_max;
 	gint start_index;
 	gboolean is_strict;
-	gint max_results;
+	guint max_results;
 
 	gchar *next_uri;
 	gchar *previous_uri;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]