Skip to content

Commit

Permalink
Merge pull request #7498 from HajagosNorbert/dec-to-str
Browse files Browse the repository at this point in the history
remove unused var causing errors in debug tests.
  • Loading branch information
smores56 authored Jan 11, 2025
2 parents 528d1d2 + 9689656 commit 1bb9f7f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions crates/compiler/builtins/bitcode/src/utils.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 1bb9f7f

Please sign in to comment.