Skip to content

Commit 5905b86

Browse files
committed
Omit enumeral types on generating default integers
1 parent 175a62b commit 5905b86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp2rust/converter/converter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2689,7 +2689,7 @@ std::string Converter::GetDefaultAsStringFallback(clang::QualType qual_type) {
26892689
return "false";
26902690
}
26912691

2692-
if (qual_type->isIntegerType()) {
2692+
if (qual_type->isIntegerType() && !qual_type->isEnumeralType()) {
26932693
return std::format("0_{}", ToString(qual_type));
26942694
}
26952695

0 commit comments

Comments
 (0)