diff options
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | gobject/gobjectmodule.c | 2 |
2 files changed, 10 insertions, 1 deletions
@@ -1,3 +1,12 @@ +2006-04-11 Andy Wingo <wingo@pobox.com> + + reviewed by: Johan Dahlin <jdahlin@async.com.br> + + * gobject/gobjectmodule.c (create_property): Parse unsigned int64 + constraints in param spec declaration using the "K" ParseTuple + format unit, not L -- allows the full range of the datatype to be + parsed. K format unit added in python 2.3. + 2006-04-01 Gustavo J. A. M. Carneiro <gjc@gnome.org> * tests/test_properties.py: Add test for #335854. diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c index 8024077..30d0e5c 100644 --- a/gobject/gobjectmodule.c +++ b/gobject/gobjectmodule.c @@ -777,7 +777,7 @@ create_property (const gchar *prop_name, { guint64 minimum, maximum, default_value; - if (!PyArg_ParseTuple(args, "LLL", &minimum, &maximum, + if (!PyArg_ParseTuple(args, "KKK", &minimum, &maximum, &default_value)) return NULL; pspec = g_param_spec_uint64 (prop_name, nick, blurb, minimum, |