diff options
author | Andy Wingo <wingo@pobox.com> | 2006-04-11 14:08:53 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2006-04-11 14:08:53 +0000 |
commit | be8d076bbafd3bb5f26fa8716ff6e898b76b1d1a (patch) | |
tree | 144a6462d3b60447134fc6befe2988c4789ef79a | |
parent | 22f5cca8c5fa610139f7fd4aca777b33bd493c25 (diff) | |
download | pygobject-be8d076bbafd3bb5f26fa8716ff6e898b76b1d1a.tar.gz pygobject-be8d076bbafd3bb5f26fa8716ff6e898b76b1d1a.tar.xz pygobject-be8d076bbafd3bb5f26fa8716ff6e898b76b1d1a.zip |
reviewed by: Johan Dahlin <jdahlin@async.com.br>
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.
-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, |