From 8e3437f787a6d12a1b40ba73c109eca1e3f95f7c Mon Sep 17 00:00:00 2001 From: Mike Gorse Date: Thu, 23 Feb 2012 16:51:31 -0600 Subject: [PATCH] Expect a signed int for GetIndexInParent, per the spec --- atspi/atspi-accessible.c | 4 ++-- registryd/registry.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/atspi/atspi-accessible.c b/atspi/atspi-accessible.c index 514efce..1cd1d7b 100644 --- a/atspi/atspi-accessible.c +++ b/atspi/atspi-accessible.c @@ -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; } diff --git a/registryd/registry.c b/registryd/registry.c index d722f17..a64e094 100644 --- a/registryd/registry.c +++ b/registryd/registry.c @@ -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; } -- 2.7.4