Skip to content

Commit

Permalink
Update is_tagged_scalar
Browse files Browse the repository at this point in the history
  • Loading branch information
osa1 committed Aug 18, 2020
1 parent 828fa04 commit 1d16494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rts/motoko-rts/src/gc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ pub unsafe extern "C" fn object_size(obj: SkewedPtr) -> Words<u32> {

#[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<u32>) -> Bytes<u32> {
Expand Down

0 comments on commit 1d16494

Please sign in to comment.