From c1c49a7d1c4195d8fd981754042eaca17745b8f4 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 8 Jul 2025 15:15:08 -0700 Subject: [PATCH] C backend: fix bitcasting regression --- src/codegen/c.zig | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/codegen/c.zig b/src/codegen/c.zig index b58d94e2a3..909269a9c6 100644 --- a/src/codegen/c.zig +++ b/src/codegen/c.zig @@ -5196,13 +5196,7 @@ fn bitcast(f: *Function, dest_ty: Type, operand: CValue, operand_ty: Type) !CVal const operand_lval = if (operand == .constant) blk: { const operand_local = try f.allocLocal(null, operand_ty); try f.writeCValue(w, operand_local, .Other); - if (operand_ty.isAbiInt(zcu)) { - try w.writeAll(" = "); - } else { - try w.writeAll(" = ("); - try f.renderType(w, operand_ty); - try w.writeByte(')'); - } + try w.writeAll(" = "); try f.writeCValue(w, operand, .Other); try w.writeByte(';'); try f.object.newline();