From 9689656845834fccfde99f029e8e700c664fad04 Mon Sep 17 00:00:00 2001 From: Norbert Hajagos Date: Fri, 10 Jan 2025 21:34:11 +0100 Subject: [PATCH] remove unused var causing errors in debug tests. --- crates/compiler/builtins/bitcode/src/utils.zig | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/crates/compiler/builtins/bitcode/src/utils.zig b/crates/compiler/builtins/bitcode/src/utils.zig index bc415329f1..76443ce899 100644 --- a/crates/compiler/builtins/bitcode/src/utils.zig +++ b/crates/compiler/builtins/bitcode/src/utils.zig @@ -224,10 +224,7 @@ pub fn increfRcPtrC(ptr_to_refcount: *isize, amount: isize) callconv(.C) void { const old = @as(usize, @bitCast(refcount)); const new = old + @as(usize, @intCast(amount)); - const oldH = old - REFCOUNT_ONE + 1; - const newH = new - REFCOUNT_ONE + 1; - - std.debug.print("{} + {} = {}!\n", .{ oldH, amount, newH }); + std.debug.print("{} + {} = {}!\n", .{ old, amount, new }); } ptr_to_refcount.* = refcount + amount; @@ -390,10 +387,7 @@ inline fn decref_ptr_to_refcount( const new = @as(usize, @bitCast(refcount -% 1)); if (DEBUG_INCDEC and builtin.target.cpu.arch != .wasm32) { - const oldH = old - REFCOUNT_ONE + 1; - const newH = new - REFCOUNT_ONE + 1; - - std.debug.print("{} - 1 = {}!\n", .{ oldH, newH }); + std.debug.print("{} - 1 = {}!\n", .{ old, new }); } if (refcount == REFCOUNT_ONE_ISIZE) {