1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-06 20:49:33 +00:00

* dbusbind.c (xd_append_arg): Use unsigned char instead of

unsigned int for byte values (necessary for big-endian platform).
This commit is contained in:
Magnus Henoch 2008-01-03 16:34:07 +00:00
parent a32c180455
commit 8bba1b5cbb
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-01-03 Magnus Henoch <magnus@zemdatav>
* 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 <tromey@redhat.com> (tiny change)
* dbusbind.c (xd_read_message): Use non-static input_event struct.

View File

@ -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,