[PATCH] Properly parse (unsigned) long long

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This fixes problems on platforms where sizeof(long) != sizeof(long long)
like ia32.

---
Cheers,
 -- Guido

 python/generator.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/python/generator.py b/python/generator.py
index a98a894..1ef76e1 100755
--- a/python/generator.py
+++ b/python/generator.py
@@ -259,8 +259,8 @@ py_types = {
     'double':  ('d', None, "double", "double"),
     'unsigned int':  ('i', None, "int", "int"),
     'unsigned long':  ('l', None, "long", "long"),
-    'long long':  ('l', None, "longlong", "long long"),
-    'unsigned long long':  ('l', None, "longlong", "long long"),
+    'long long':  ('L', None, "longlong", "long long"),
+    'unsigned long long':  ('K', None, "longlong", "long long"),
     'unsigned char *':  ('z', None, "charPtr", "char *"),
     'char *':  ('z', None, "charPtr", "char *"),
     'const char *':  ('z', None, "constcharPtr", "const char *"),
-- 
1.7.10.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]