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. --- gobject/gobjectmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gobject') 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