summaryrefslogtreecommitdiffstats
path: root/gobject/gobjectmodule.c
diff options
context:
space:
mode:
authorYevgen Muntyan <muntyan@tamu.edu>2006-11-18 13:24:42 +0000
committerJohan Dahlin <johan@src.gnome.org>2006-11-18 13:24:42 +0000
commit432a1851feaa99e8c3e6feb54a2c6d97810be0ec (patch)
treedde3798d219c006b619a1045754251348ae934ec /gobject/gobjectmodule.c
parentf27cb5674c9526d1f1fc4537bd4612c42d9dce4d (diff)
downloadpygobject-432a1851feaa99e8c3e6feb54a2c6d97810be0ec.tar.gz
pygobject-432a1851feaa99e8c3e6feb54a2c6d97810be0ec.tar.xz
pygobject-432a1851feaa99e8c3e6feb54a2c6d97810be0ec.zip
reviewed by: Johan Dahlin <johan@gnome.org>
2006-11-18 Yevgen Muntyan <muntyan@tamu.edu> reviewed by: Johan Dahlin <johan@gnome.org> * gobject/gobjectmodule.c: (create_property): * gobject/pygparamspec.c: (pyg_param_spec_getattr): * tests/test_properties.py: Avoid truncating in pyg_param_spec_getattr, add test for all non-float numeric types. Fixes #353943
Diffstat (limited to 'gobject/gobjectmodule.c')
-rw-r--r--gobject/gobjectmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c
index df3f8b7..d71a9e4 100644
--- a/gobject/gobjectmodule.c
+++ b/gobject/gobjectmodule.c
@@ -740,7 +740,7 @@ create_property (const gchar *prop_name,
{
guint minimum, maximum, default_value;
- if (!PyArg_ParseTuple(args, "iii", &minimum, &maximum,
+ if (!PyArg_ParseTuple(args, "III", &minimum, &maximum,
&default_value))
return NULL;
pspec = g_param_spec_uint (prop_name, nick, blurb, minimum,
@@ -762,7 +762,7 @@ create_property (const gchar *prop_name,
{
gulong 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_ulong (prop_name, nick, blurb, minimum,