]> xenbits.xensource.com Git - libvirt.git/commitdiff
* python/generator.py: fix the generator when handling long integers
authorDaniel Veillard <veillard@redhat.com>
Fri, 4 Aug 2006 13:36:07 +0000 (13:36 +0000)
committerDaniel Veillard <veillard@redhat.com>
Fri, 4 Aug 2006 13:36:07 +0000 (13:36 +0000)
  Dan Berrange reported problems due to this when using
  virDomainSetMemory bindings
Daniel

ChangeLog
python/generator.py

index aa432be5070d4c0cb8b603aab6259f23b402e33f..952c9d6f3f421af61dc70edfe091e952d0382f59 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Fri Aug  4 14:45:25 CEST 2006 Daniel Veillard <veillard@redhat.com>
+
+       * 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 <veillard@redhat.com>
 
        * include/libvirt/libvirt.h include/libvirt/libvirt.h.in
index 3345ac84ca7e7cb2384f157c500510fd2c2a1cb4..63f763561cdb8f3dfeff5c08084147f081113961 100755 (executable)
@@ -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 *"),