diff --git a/rts/motoko-rts/src/gc.rs b/rts/motoko-rts/src/gc.rs index 760827eb7fb..faeee5d86a0 100644 --- a/rts/motoko-rts/src/gc.rs +++ b/rts/motoko-rts/src/gc.rs @@ -128,7 +128,7 @@ pub unsafe extern "C" fn object_size(obj: SkewedPtr) -> Words { #[no_mangle] pub unsafe extern "C" fn is_tagged_scalar(p: SkewedPtr) -> bool { - p.0 & 0b10 == 0 + p.0 & 0b1 == 0 } fn words_to_bytes(words: Words) -> Bytes {