Skip to content

Commit c500cff

Browse files
committed
Omit enumeral types on generating default integers
1 parent 207106c commit c500cff

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
@@ -2731,7 +2731,7 @@ std::string Converter::GetDefaultAsStringFallback(clang::QualType qual_type) {
27312731
return "false";
27322732
}
27332733

2734-
if (qual_type->isIntegerType()) {
2734+
if (qual_type->isIntegerType() && !qual_type->isEnumeralType()) {
27352735
return std::format("0_{}", ToString(qual_type));
27362736
}
27372737

0 commit comments

Comments
 (0)