From 9eb77d45c2a2240afb12bbcdc0935585945ce1f8 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Fri, 4 Aug 2006 13:36:07 +0000 Subject: * python/generator.py: fix the generator when handling long integers Dan Berrange reported problems due to this when using virDomainSetMemory bindings Daniel --- generator.py | 4 ++-- 1 file 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 *"), -- cgit