changeset 24324:7493462e6959

A patch from Math2Gold to fix the dbus-analyze-functions script to properly handle unsigned vs. signed in inputsimple. Fixes #7432
author Richard Laager <rlaager@wiktel.com>
date Thu, 13 Nov 2008 17:38:09 +0000
parents dd155ec42b25
children 965699159512
files libpurple/dbus-analyze-functions.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/dbus-analyze-functions.py	Wed Nov 12 02:50:52 2008 +0000
+++ b/libpurple/dbus-analyze-functions.py	Thu Nov 13 17:38:09 2008 +0000
@@ -372,13 +372,13 @@
 
     def inputsimple(self, type, name, us):
         if us:
+            self.cdecls.append("\tdbus_uint32_t %s;" % name)
+            self.cparams.append(("UINT32", name))
+            self.addintype("u", name)
+        else:
             self.cdecls.append("\tdbus_int32_t %s;" % name)
             self.cparams.append(("INT32", name))
             self.addintype("i", name)
-        else:
-            self.cdecls.append("\tdbus_uint32_t %s;" % name)
-            self.cparams.append(("UINT32", name))
-            self.addintype("u", name)
 
     def inputstring(self, type, name, us):
         if us: