aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-11-13 11:29:50 +0100
committerDmitry Vyukov <dvyukov@google.com>2024-11-13 15:00:09 +0000
commitb8b948db64ea6e06345ecb8f95ce4f1bc45a2512 (patch)
tree0fc5645e545be5c30acf17679e4f7d8d6975a15c
parent12db6bb497226c7de224a55ec91f863f2a444439 (diff)
tools/syz-declextract: handle _Bool type
-rw-r--r--tools/syz-declextract/syz-declextract.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/syz-declextract/syz-declextract.cpp b/tools/syz-declextract/syz-declextract.cpp
index 3c6c40a23..be63fa8cf 100644
--- a/tools/syz-declextract/syz-declextract.cpp
+++ b/tools/syz-declextract/syz-declextract.cpp
@@ -226,7 +226,7 @@ IntType getIntType(const std::string &ctype, const bool isSyscallParam) {
if (contains(ctype, "16") || contains(ctype, "short")) {
return INT_16;
}
- if (contains(ctype, "8") || contains(ctype, "char")) {
+ if (contains(ctype, "8") || contains(ctype, "char") || ctype == "_Bool") {
return INT_8;
}
if (contains(ctype, "32") || contains(ctype, "int")) {