Fix type issue with bool_t in the Python wrapper, leading to memory overwrite.

This commit is contained in:
Ghislain MARY 2014-08-27 11:34:35 +02:00
parent 32e0c948a1
commit 4c6dcb5799

View file

@ -138,8 +138,8 @@ class ArgumentType:
self.type_str = 'bool'
self.check_func = 'PyBool_Check'
self.convert_func = 'PyInt_AsLong'
self.fmt_str = 'i'
self.cfmt_str = '%d'
self.fmt_str = 'b'
self.cfmt_str = '%u'
elif self.basic_type == 'time_t':
self.type_str = 'DateTime'
self.check_func = 'PyDateTime_Check'