mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-24 04:01:46 +00:00
Update internal ABI to zero/sign-extend where necessary only (#87)
This commit is contained in:
@ -255,9 +255,9 @@ function node_for_ptr(ptr: usize, bucket: usize): usize {
|
||||
/*
|
||||
* Given the index of a node, this returns the "is split" flag of the parent.
|
||||
*/
|
||||
function parent_is_split(index: usize): i32 {
|
||||
function parent_is_split(index: usize): bool {
|
||||
index = (index - 1) / 2;
|
||||
return (node_is_split$get(index / 8) >>> <i32>(index % 8)) & 1;
|
||||
return ((node_is_split$get(index / 8) >>> <i32>(index % 8)) & 1) == 1;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user