Mercurial > emacs
changeset 87533:d24ee3180427
* dbusbind.c (xd_append_arg): Use unsigned char instead of
unsigned int for byte values (necessary for big-endian platform).
author | Magnus Henoch <mange@freemail.hu> |
---|---|
date | Thu, 03 Jan 2008 16:32:54 +0000 |
parents | 5e0aa4ec4b9d |
children | b41118a0a1bc |
files | src/dbusbind.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dbusbind.c Thu Jan 03 09:57:40 2008 +0000 +++ b/src/dbusbind.c Thu Jan 03 16:32:54 2008 +0000 @@ -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 @@ { 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,