From 7c9ada78241e08bf36bd04d989f742a6de721575 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Wed, 5 May 2021 17:23:49 +0800 Subject: Add the ability to automatically create struct members --- python/generator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python/generator.cpp') 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; -- cgit v1.3.1