Skip to content

Commit d90c221

Browse files
fix string comparison that contains whitespace
1 parent 199e18e commit d90c221

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clingwrapper/src/clingwrapper.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ bool Cppyy::IsBuiltin(const std::string& type_name)
784784
"unsigned short", "int", "unsigned int", "long", "unsigned long",
785785
"long long", "unsigned long long", "float", "double", "long double",
786786
"void"};
787-
if (s_builtins.find(type_name) != s_builtins.end())
787+
if (s_builtins.find(trim(type_name)) != s_builtins.end())
788788
return true;
789789

790790
if (strstr(type_name.c_str(), "std::complex"))

0 commit comments

Comments
 (0)