From 6f99e7430a56bfcdad6689556fe2d9d7e70d05a7 Mon Sep 17 00:00:00 2001 From: Benedikt Reinartz Date: Wed, 7 Feb 2024 08:04:52 +0100 Subject: [PATCH] Add debug call --- rustler/src/dynamic.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rustler/src/dynamic.rs b/rustler/src/dynamic.rs index 0016a879..8c2d9dfb 100644 --- a/rustler/src/dynamic.rs +++ b/rustler/src/dynamic.rs @@ -127,6 +127,7 @@ impl<'a> Term<'a> { if term_val & TAG_PRIMARY_MASK == TAG_PRIMARY_BOXED { let term_ptr = term_val - TAG_PRIMARY_BOXED; let header = unsafe { *(term_ptr as *const usize) }; + dbg!(header, HEADER_FLONUM, SIZE); header == HEADER_FLONUM } else { false