From: Magnus Henoch Date: Thu, 3 Jan 2008 16:34:07 +0000 (+0000) Subject: * dbusbind.c (xd_append_arg): Use unsigned char instead of X-Git-Tag: emacs-pretest-23.0.90~8730 X-Git-Url: https://code.delx.au/gnu-emacs/commitdiff_plain/8bba1b5cbb2dd408ab73c971fa97b33657d159ec * dbusbind.c (xd_append_arg): Use unsigned char instead of unsigned int for byte values (necessary for big-endian platform). --- diff --git a/src/ChangeLog b/src/ChangeLog index b3fddb3321..a8cccf957b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-01-03 Magnus Henoch + + * dbusbind.c (xd_append_arg): Use unsigned char instead of + unsigned int for byte values (necessary for big-endian platform). + 2007-12-31 Tom Tromey (tiny change) * dbusbind.c (xd_read_message): Use non-static input_event struct. diff --git a/src/dbusbind.c b/src/dbusbind.c index 57625d3876..1b6642b834 100644 --- a/src/dbusbind.c +++ b/src/dbusbind.c @@ -1,5 +1,5 @@ /* Elisp bindings for D-Bus. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007, 2008 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -341,7 +341,7 @@ xd_append_arg (dtype, object, iter) { case DBUS_TYPE_BYTE: { - unsigned int val = XUINT (object) & 0xFF; + unsigned char val = XUINT (object) & 0xFF; XD_DEBUG_MESSAGE ("%c %d", dtype, val); if (!dbus_message_iter_append_basic (iter, dtype, &val)) xsignal2 (Qdbus_error,