mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Fix type issue with bool_t in the Python wrapper, leading to memory overwrite.
This commit is contained in:
parent
32e0c948a1
commit
4c6dcb5799
1 changed files with 2 additions and 2 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue