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. --- qt/message.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt') diff --git a/qt/message.cpp b/qt/message.cpp index 8064ed7a..256c2b23 100644 --- a/qt/message.cpp +++ b/qt/message.cpp @@ -505,8 +505,8 @@ Message::message() const Message& Message::operator<<( bool b ) { - const unsigned char byte = b; - dbus_message_append_args( d->msg, DBUS_TYPE_BOOLEAN, &byte, + const dbus_bool_t right_size_bool = b; + dbus_message_append_args( d->msg, DBUS_TYPE_BOOLEAN, &right_size_bool, DBUS_TYPE_INVALID ); } -- cgit