We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f9afef commit be42fbeCopy full SHA for be42fbe
1 file changed
cpp2rust/converter/converter.cpp
@@ -1708,7 +1708,7 @@ bool Converter::VisitFloatingLiteral(clang::FloatingLiteral *expr) {
1708
bool Converter::VisitCharacterLiteral(clang::CharacterLiteral *expr) {
1709
auto uc = static_cast<unsigned char>(expr->getValue());
1710
std::string ch = GetEscapedCharLiteral(expr->getValue());
1711
- ch = (uc > 0x7F ? "b'" : "'") + std::move(ch) + "'";
+ ch = (uc > 0x7F ? "b'" : "'") + std::move(ch) + '\'';
1712
{
1713
PushParen paren(*this);
1714
StrCat(ch, keyword::kAs, ToStringBase(expr->getType()));
0 commit comments