# HG changeset patch
# User Magnus Henoch <mange@freemail.hu>
# Date 1199377974 0
# Node ID d24ee31804270a2904a9e31fa2c6ea67f2b6582d
# Parent  5e0aa4ec4b9d60f2bdb3b139549f596fe658a992
	* dbusbind.c (xd_append_arg): Use unsigned char instead of
	unsigned int for byte values (necessary for big-endian platform).

diff -r 5e0aa4ec4b9d -r d24ee3180427 src/dbusbind.c
--- 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,