Fixed if clause in type conversion

This commit is contained in:
lcdr 2015-08-10 12:42:24 +02:00
parent 7ffb5a0ca2
commit c6b0d74654

View File

@ -148,7 +148,7 @@ class StructParser:
type_ = str, 1
elif def_["type"] == "wstring":
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"]]
# the rest of types are in the format (s|u)<bitlength>
elif def_["type"].startswith("s"):