mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 15:03:46 +00:00
remove unused var causing errors in debug tests.
This commit is contained in:
parent
5d0b700730
commit
9689656845
1 changed files with 2 additions and 8 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue