From be8d076bbafd3bb5f26fa8716ff6e898b76b1d1a Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Tue, 11 Apr 2006 14:08:53 +0000 Subject: reviewed by: Johan Dahlin 2006-04-11 Andy Wingo reviewed by: Johan Dahlin * 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. --- ChangeLog | 9 +++++++++ gobject/gobjectmodule.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e9c0fe9..347c169 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2006-04-11 Andy Wingo + + reviewed by: Johan Dahlin + + * 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 * 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, -- cgit