Skip to content

Commit c5bbd6b

Browse files
authored
fix
Co-authored-by: nunoplopes <2998477+nunoplopes@users.noreply.github.com>
1 parent 3b24d92 commit c5bbd6b

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
@@ -1242,7 +1242,8 @@ bool ConverterRefCount::VisitImplicitCastExpr(clang::ImplicitCastExpr *expr) {
12421242
if (expr->getCastKind() == clang::CastKind::CK_NoOp) {
12431243
Convert(sub_expr);
12441244

1245-
if (expr->getType()->isPointerType() && sub_expr->getType()->isPointerType()) {
1245+
if (expr->getType()->isPointerType() &&
1246+
sub_expr->getType()->isPointerType()) {
12461247
auto dest_type = ConvertPointeeType(expr->getType());
12471248
if (dest_type != ConvertPointeeType(sub_expr->getType())) {
12481249
StrCat(std::format(".reinterpret_cast::<{}>()", dest_type));

0 commit comments

Comments
 (0)