summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2006-08-04 13:36:07 +0000
committerDaniel Veillard <veillard@redhat.com>2006-08-04 13:36:07 +0000
commit9eb77d45c2a2240afb12bbcdc0935585945ce1f8 (patch)
tree3f5db900524ad9b753cf15b5b54018a16a473b83
parent3891a6500b156ef7b10555abf6c0c81f8509b74a (diff)
downloadlibvirt-python-9eb77d45c2a2240afb12bbcdc0935585945ce1f8.tar.gz
* python/generator.py: fix the generator when handling long integersv0.1.4LIBVIRT_0_1_4
Dan Berrange reported problems due to this when using virDomainSetMemory bindings Daniel
-rwxr-xr-xgenerator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/generator.py b/generator.py
index 3345ac8..63f7635 100755
--- a/generator.py
+++ b/generator.py
@@ -224,10 +224,10 @@ skipped_types = {
py_types = {
'void': (None, None, None, None),
'int': ('i', None, "int", "int"),
- 'long': ('i', None, "int", "int"),
+ 'long': ('l', None, "long", "long"),
'double': ('d', None, "double", "double"),
'unsigned int': ('i', None, "int", "int"),
- 'unsigned long': ('i', None, "int", "int"),
+ 'unsigned long': ('l', None, "long", "long"),
'unsigned char *': ('z', None, "charPtr", "char *"),
'char *': ('z', None, "charPtr", "char *"),
'const char *': ('z', None, "charPtrConst", "const char *"),