Commit 4c6dcb57 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

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

parent 32e0c948
......@@ -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'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment