From d7815361f8dcefb54a4377ebf5e28201517e453d Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Fri, 4 Aug 2006 13:36:07 +0000 Subject: [PATCH] * python/generator.py: fix the generator when handling long integers Dan Berrange reported problems due to this when using virDomainSetMemory bindings Daniel --- ChangeLog | 6 ++++++ python/generator.py | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index aa432be507..952c9d6f3f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri Aug 4 14:45:25 CEST 2006 Daniel Veillard + + * python/generator.py: fix the generator when handling long integers + Dan Berrange reported problems due to this when using + virDomainSetMemory bindings + Fri Aug 4 11:49:44 CEST 2006 Daniel Veillard * include/libvirt/libvirt.h include/libvirt/libvirt.h.in diff --git a/python/generator.py b/python/generator.py index 3345ac84ca..63f763561c 100755 --- a/python/generator.py +++ b/python/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 *"),