We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 175a62b commit 5905b86Copy full SHA for 5905b86
1 file changed
cpp2rust/converter/converter.cpp
@@ -2689,7 +2689,7 @@ std::string Converter::GetDefaultAsStringFallback(clang::QualType qual_type) {
2689
return "false";
2690
}
2691
2692
- if (qual_type->isIntegerType()) {
+ if (qual_type->isIntegerType() && !qual_type->isEnumeralType()) {
2693
return std::format("0_{}", ToString(qual_type));
2694
2695
0 commit comments