From 62e465339a306fa564b69935da494dad6e1b474a Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Mon, 17 Jan 2005 19:49:52 +0000 Subject: 2005-01-17 Havoc Pennington * dbus/dbus-types.h: hardcode dbus_bool_t to 32 bits * Throughout: modify DBUS_TYPE_BOOLEAN to be a 32-bit type instead of an 8-bit type. Now dbus_bool_t is the type to use whenever you are marshaling/unmarshaling a boolean. --- dbus/dbus-message-builder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dbus/dbus-message-builder.c') diff --git a/dbus/dbus-message-builder.c b/dbus/dbus-message-builder.c index 58718f6d..83b37aff 100644 --- a/dbus/dbus-message-builder.c +++ b/dbus/dbus-message-builder.c @@ -456,9 +456,9 @@ parse_basic_type (DBusString *src, char type, switch (type) { case DBUS_TYPE_BYTE: - case DBUS_TYPE_BOOLEAN: align = 1; break; + case DBUS_TYPE_BOOLEAN: case DBUS_TYPE_UINT32: case DBUS_TYPE_INT32: align = 4; @@ -514,9 +514,9 @@ parse_basic_array (DBusString *src, char type, switch (type) { case DBUS_TYPE_BYTE: - case DBUS_TYPE_BOOLEAN: elem_size = 1; break; + case DBUS_TYPE_BOOLEAN: case DBUS_TYPE_UINT32: case DBUS_TYPE_INT32: elem_size = 4; -- cgit