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



commit 61e704dc4a948f3fba2f874da5ca23593a5f8712
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]