pidgin: 0d3ce6dc: A patch from Math2Gold to fix the dbus-a...

rlaager at pidgin.im rlaager at pidgin.im
Thu Nov 13 12:40:22 EST 2008


-----------------------------------------------------------------
Revision: 0d3ce6dca7222c77b50e8a23fe0ed1bae02928a8
Ancestor: 78ed36cc0ce73adfd57f03aa3a1086bb22c53773
Author: rlaager at pidgin.im
Date: 2008-11-13T17:38:09
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/0d3ce6dca7222c77b50e8a23fe0ed1bae02928a8

Modified files:
        libpurple/dbus-analyze-functions.py

ChangeLog: 

A patch from Math2Gold to fix the dbus-analyze-functions script to properly
handle unsigned vs. signed in inputsimple.
Fixes #7432

-------------- next part --------------
============================================================
--- libpurple/dbus-analyze-functions.py	e3d3eebe5969b306f13554b2b2b438e3e982a0aa
+++ libpurple/dbus-analyze-functions.py	98d6fc4c75ca0774dc9398922424006bf93efc43
@@ -372,13 +372,13 @@ class ServerBinding (Binding):
 
     def inputsimple(self, type, name, us):
         if us:
-            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)
+        else:
+            self.cdecls.append("\tdbus_int32_t %s;" % name)
+            self.cparams.append(("INT32", name))
+            self.addintype("i", name)
 
     def inputstring(self, type, name, us):
         if us:


More information about the Commits mailing list