Skip to content

Commit 1d16494

Browse files
committed
Update is_tagged_scalar
1 parent 828fa04 commit 1d16494

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rts/motoko-rts/src/gc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ pub unsafe extern "C" fn object_size(obj: SkewedPtr) -> Words<u32> {
128128

129129
#[no_mangle]
130130
pub unsafe extern "C" fn is_tagged_scalar(p: SkewedPtr) -> bool {
131-
p.0 & 0b10 == 0
131+
p.0 & 0b1 == 0
132132
}
133133

134134
fn words_to_bytes(words: Words<u32>) -> Bytes<u32> {

0 commit comments

Comments
 (0)