Skip to content

Commit 2ecb9fe

Browse files
committed
Drop integer suffix when visiting integer literal
1 parent d15662f commit 2ecb9fe

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
@@ -1643,7 +1643,7 @@ bool Converter::VisitIntegerLiteral(clang::IntegerLiteral *expr) {
16431643
computed_expr_type_ = ComputedExprType::FreshValue;
16441644
return false;
16451645
}
1646-
StrCat(getIntegerLiteral(expr, Mapper::Map(expr->getType()) != "i32"));
1646+
StrCat(getIntegerLiteral(expr, false));
16471647
computed_expr_type_ = ComputedExprType::FreshValue;
16481648
return false;
16491649
}

0 commit comments

Comments
 (0)