| ... | ... | @@ -459,9 +459,10 @@ fn transImplicitCastExpr( |
| 459 | 459 | const c = rp.c; |
| 460 | 460 | switch (ZigClangImplicitCastExpr_getCastKind(expr)) { |
| 461 | 461 | .BitCast => { |
| 462 | | const node = try transExpr(rp, scope, @ptrCast(*const ZigClangExpr, expr), .used, .r_value); |
| 462 | const sub_expr = ZigClangImplicitCastExpr_getSubExpr(expr); |
| 463 | const node = try transExpr(rp, scope, @ptrCast(*const ZigClangExpr, sub_expr), .used, .r_value); |
| 463 | 464 | const dest_type = getExprQualType(c, @ptrCast(*const ZigClangExpr, expr)); |
| 464 | | const src_type = getExprQualType(c, ZigClangImplicitCastExpr_getSubExpr(expr)); |
| 465 | const src_type = getExprQualType(c, sub_expr); |
| 465 | 466 | return try transCCast(rp, scope, ZigClangImplicitCastExpr_getBeginLoc(expr), dest_type, src_type, node.node); |
| 466 | 467 | }, |
| 467 | 468 | else => |kind| return revertAndWarn( |