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



commit 22892b635b6399b23c477df943b5c5afd112e1ad
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sat Nov 27 21:51:34 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 00b5a0f..71b9393 100644
--- a/gdata/gdata-query.c
+++ b/gdata/gdata-query.c
@@ -81,7 +81,7 @@ struct _GDataQueryPrivate {
 	GTimeVal published_max;
 	gint start_index;
 	gboolean is_strict;
-	gint max_results;
+	guint max_results;
 	gchar *entry_id;
 
 	gchar *next_uri;



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