Skip to content

Commit 9d111e7

Browse files
committed
fix
1 parent ea3d07c commit 9d111e7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎cpp2rust/converter/models/converter_refcount.cpp‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1265,7 +1265,8 @@ bool ConverterRefCount::VisitImplicitCastExpr(clang::ImplicitCastExpr *expr) {
12651265
if (expr->getCastKind() == clang::CastKind::CK_NoOp) {
12661266
Convert(sub_expr);
12671267

1268-
if (expr->getType()->isPointerType() && sub_expr->getType()->isPointerType()) {
1268+
if (expr->getType()->isPointerType() &&
1269+
sub_expr->getType()->isPointerType()) {
12691270
auto dest_type = ConvertPointeeType(expr->getType());
12701271
if (dest_type != ConvertPointeeType(sub_expr->getType())) {
12711272
StrCat(std::format(".reinterpret_cast::<{}>()", dest_type));

0 commit comments

Comments
 (0)