Skip to content

Commit 9be0609

Browse files
reduce signed char enums to char enums (#157)
1 parent 54d4064 commit 9be0609

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clingwrapper/src/clingwrapper.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,8 +705,11 @@ Cppyy::TCppType_t Cppyy::GetComplexType(const std::string &name) {
705705

706706
std::string Cppyy::ResolveEnum(TCppScope_t handle)
707707
{
708-
return Cpp::GetTypeAsString(
708+
std::string type = Cpp::GetTypeAsString(
709709
Cpp::GetIntegerTypeFromEnumScope(handle));
710+
if (type == "signed char")
711+
return "char";
712+
return type;
710713
}
711714

712715
Cppyy::TCppScope_t Cppyy::GetUnderlyingScope(TCppScope_t scope)

0 commit comments

Comments
 (0)