summaryrefslogtreecommitdiff
path: root/typeparser.cpp
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2022-06-03 15:57:01 -0400
committerGlenn Smith <glenn@vector35.com>2022-06-03 15:57:06 -0400
commit33d2cf8bc7b6f1cf7df9d8a0ac6b4c823ff361eb (patch)
tree4c96066a68d60eedc0aa763b2faab4b8a3114656 /typeparser.cpp
parent4bb510c2e4456606e03acfc6970bf8697156769e (diff)
Fix type parser api not reporting isUser correctly for vars/funcs
Diffstat (limited to 'typeparser.cpp')
-rw-r--r--typeparser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/typeparser.cpp b/typeparser.cpp
index db6f8b21..8351de2f 100644
--- a/typeparser.cpp
+++ b/typeparser.cpp
@@ -441,7 +441,7 @@ bool CoreTypeParser::ParseTypesFromSource(const std::string& source, const std::
result.variables.push_back({
QualifiedName::FromAPIObject(&apiResult.variables[j].name),
new Type(BNNewTypeReference(apiResult.variables[j].type)),
- apiResult.types[j].isUser
+ apiResult.variables[j].isUser
});
}
@@ -451,7 +451,7 @@ bool CoreTypeParser::ParseTypesFromSource(const std::string& source, const std::
result.functions.push_back({
QualifiedName::FromAPIObject(&apiResult.functions[j].name),
new Type(BNNewTypeReference(apiResult.functions[j].type)),
- apiResult.types[j].isUser
+ apiResult.functions[j].isUser
});
}