diff options
author | Guido Günther <agx@sigxcpu.org> | 2012-10-13 01:05:40 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2012-10-13 02:54:11 +0200 |
commit | c360b84ba0d464c06d0e617ed753a71a84e8e8ee (patch) | |
tree | 4184be7d473bc92d7ea29caef48f22887d780778 /generator.py | |
parent | 49873a855f0ede1388cea7ef37bf861e88950d61 (diff) | |
download | libvirt-python-v6-c360b84ba0d464c06d0e617ed753a71a84e8e8ee.tar.gz libvirt-python-v6-c360b84ba0d464c06d0e617ed753a71a84e8e8ee.tar.xz libvirt-python-v6-c360b84ba0d464c06d0e617ed753a71a84e8e8ee.zip |
Properly parse (unsigned) long long
This fixes problems on platforms where sizeof(long) != sizeof(long long)
like ia32.
Diffstat (limited to 'generator.py')
-rwxr-xr-x | generator.py | 4 |
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 *"), |