summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido G√ľnther <agx@sigxcpu.org>2012-10-13 01:05:40 +0200
committerCole Robinson <crobinso@redhat.com>2012-10-18 13:19:51 -0400
commit3e341f8061a3c43ecd8460b4519438b30d5c2d9d (patch)
treec25d7038a35b9d65077acf552228c8533265a0d6
parent10f2d97ecfbf8505120d1ebbd2c5717133c3d15f (diff)
downloadlibvirt-python-split-3e341f8061a3c43ecd8460b4519438b30d5c2d9d.zip
libvirt-python-split-3e341f8061a3c43ecd8460b4519438b30d5c2d9d.tar.gz
libvirt-python-split-3e341f8061a3c43ecd8460b4519438b30d5c2d9d.tar.xz
This fixes problems on platforms where sizeof(long) != sizeof(long long) like ia32. (cherry picked from commit d78035d06aab73a76a82c525f41580cf986cce7b)
-rwxr-xr-xgenerator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/generator.py b/generator.py
index a98a894..ced7e41 100755
--- a/generator.py
+++ b/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': ('L', None, "longlong", "long long"),
'unsigned char *': ('z', None, "charPtr", "char *"),
'char *': ('z', None, "charPtr", "char *"),
'const char *': ('z', None, "constcharPtr", "const char *"),