We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 207106c commit c500cffCopy full SHA for c500cff
1 file changed
cpp2rust/converter/converter.cpp
@@ -2731,7 +2731,7 @@ std::string Converter::GetDefaultAsStringFallback(clang::QualType qual_type) {
2731
return "false";
2732
}
2733
2734
- if (qual_type->isIntegerType()) {
+ if (qual_type->isIntegerType() && !qual_type->isEnumeralType()) {
2735
return std::format("0_{}", ToString(qual_type));
2736
2737
0 commit comments