Expect a signed int for GetIndexInParent, per the spec
authorMike Gorse <mgorse@novell.com>
Thu, 23 Feb 2012 22:51:31 +0000 (16:51 -0600)
committerMike Gorse <mgorse@novell.com>
Thu, 23 Feb 2012 22:51:31 +0000 (16:51 -0600)
atspi/atspi-accessible.c
registryd/registry.c

index 514efce..1cd1d7b 100644 (file)
@@ -491,9 +491,9 @@ atspi_accessible_get_index_in_parent (AtspiAccessible *obj, GError **error)
   if (!_atspi_accessible_test_cache (obj->accessible_parent,
                                      ATSPI_CACHE_CHILDREN))
   {
-    dbus_uint32_t ret = -1;
+    dbus_int32_t ret = -1;
     _atspi_dbus_call (obj, atspi_interface_accessible,
-                      "GetIndexInParent", NULL, "=>u", &ret);
+                      "GetIndexInParent", NULL, "=>i", &ret);
     return ret;
   }
 
index d722f17..a64e094 100644 (file)
@@ -674,7 +674,7 @@ impl_GetIndexInParent (DBusConnection * bus,
   dbus_uint32_t rv = 0;
 
   reply = dbus_message_new_method_return (message);
-  dbus_message_append_args (reply, DBUS_TYPE_UINT32, &rv, DBUS_TYPE_INVALID);
+  dbus_message_append_args (reply, DBUS_TYPE_INT32, &rv, DBUS_TYPE_INVALID);
   return reply;
 }