diff options
| author | Xusheng <xusheng@vector35.com> | 2021-05-05 17:23:49 +0800 |
|---|---|---|
| committer | Xusheng <xusheng@vector35.com> | 2021-05-26 17:46:13 +0800 |
| commit | 7c9ada78241e08bf36bd04d989f742a6de721575 (patch) | |
| tree | 4134fd2f12a504ab17cc0b9acc1fb8d27552490f /python/generator.cpp | |
| parent | fd1974b407be042fd84f0267a328a5adabce28e1 (diff) | |
Add the ability to automatically create struct members
Diffstat (limited to 'python/generator.cpp')
| -rw-r--r-- | python/generator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/generator.cpp b/python/generator.cpp index f78324cf..4901b07a 100644 --- a/python/generator.cpp +++ b/python/generator.cpp @@ -344,7 +344,8 @@ int main(int argc, char* argv[]) { if ((arg.type->GetClass() == PointerTypeClass) && (arg.type->GetChildType()->GetWidth() == 1) && - (arg.type->GetChildType()->IsSigned())) + (arg.type->GetChildType()->IsSigned()) && + (!arg.type->GetChildType()->IsBool())) { stringArgument = true; break; |
