mirror of
https://github.com/lcdr/utils.git
synced 2024-08-30 17:32:16 +00:00
Fixed if clause in type conversion
This commit is contained in:
parent
7ffb5a0ca2
commit
c6b0d74654
@ -148,7 +148,7 @@ class StructParser:
|
|||||||
type_ = str, 1
|
type_ = str, 1
|
||||||
elif def_["type"] == "wstring":
|
elif def_["type"] == "wstring":
|
||||||
type_ = str, 2
|
type_ = str, 2
|
||||||
if def_["type"] in ("char", "wchar", "float", "double"):
|
elif def_["type"] in ("char", "wchar", "float", "double"):
|
||||||
type_ = vars(ctypes)["c_"+def_["type"]]
|
type_ = vars(ctypes)["c_"+def_["type"]]
|
||||||
# the rest of types are in the format (s|u)<bitlength>
|
# the rest of types are in the format (s|u)<bitlength>
|
||||||
elif def_["type"].startswith("s"):
|
elif def_["type"].startswith("s"):
|
||||||
|
Loading…
Reference in New Issue
Block a user