summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2006-04-11 14:08:53 +0000
committerJohan Dahlin <johan@src.gnome.org>2006-04-11 14:08:53 +0000
commitbe8d076bbafd3bb5f26fa8716ff6e898b76b1d1a (patch)
tree144a6462d3b60447134fc6befe2988c4789ef79a
parent22f5cca8c5fa610139f7fd4aca777b33bd493c25 (diff)
downloadpygobject-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--ChangeLog9
-rw-r--r--gobject/gobjectmodule.c2
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e9c0fe9..347c169 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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,