valuetransform: Fix definition of ulong_bool
authorPhilipp Kern <pkern@debian.org>
Wed, 27 Jun 2012 08:57:50 +0000 (10:57 +0200)
committerMartin Pitt <martinpitt@gnome.org>
Wed, 27 Jun 2012 08:59:29 +0000 (10:59 +0200)
On big endian 64 bit machines such as s390x, an uint is too small to hold a
ulong_bool; it needs to be an actual ulong.

https://bugzilla.gnome.org/show_bug.cgi?id=678949
http://bugs.debian.org/662057

gobject/gvaluetransform.c

index a785817..054250c 100644 (file)
@@ -140,7 +140,7 @@ value_transform_##func_name (const GValue *src_value,                       \
 DEFINE_BOOL_CHECK (int_bool,    v_int);
 DEFINE_BOOL_CHECK (uint_bool,   v_uint);
 DEFINE_BOOL_CHECK (long_bool,   v_long);
-DEFINE_BOOL_CHECK (ulong_bool,  v_uint);
+DEFINE_BOOL_CHECK (ulong_bool,  v_ulong);
 DEFINE_BOOL_CHECK (int64_bool,  v_int64);
 DEFINE_BOOL_CHECK (uint64_bool, v_uint64);