Skip to content

Commit

Permalink
add debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
ggreif committed Jul 6, 2023
1 parent edb8e6c commit 7f07d08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rts/motoko-rts/src/bigint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ unsafe fn persist_bigint(i: mp_int) -> Value {
}
let r = BigInt::from_payload(i.dp);
if (*r).mp_int.alloc != i.alloc {
panic!("persist_bigint: alloc changed?");
panic!("persist_bigint: alloc changed? heap {} stack {}", (*r).mp_int.alloc, i.alloc);
}
(*r).mp_int = i;
Value::from_ptr(r as usize)
Expand Down

0 comments on commit 7f07d08

Please sign in to comment.