Skip to content

Commit 167627e

Browse files
authored
Format converter static-array decay fix
1 parent be00acf commit 167627e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cpp2rust/converter/converter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,8 +1989,8 @@ bool Converter::VisitImplicitCastExpr(clang::ImplicitCastExpr *expr) {
19891989
if (IsGlobalVar(sub_expr)) {
19901990
StrCat("(&raw", dest_pointee_const ? keyword::kConst : keyword_mut_);
19911991
Convert(sub_expr);
1992-
StrCat(").cast::<", GetUnsafeTypeAsString(expr->getType()->getPointeeType()),
1993-
">()");
1992+
StrCat(").cast::<",
1993+
GetUnsafeTypeAsString(expr->getType()->getPointeeType()), ">()");
19941994
} else {
19951995
Convert(sub_expr);
19961996
if (clang::isa<clang::StringLiteral>(sub_expr) ||

0 commit comments

Comments
 (0)