mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-23 19:51:47 +00:00
Cast to bool by comparing to zero (#343)
This commit is contained in:
@ -21,20 +21,18 @@
|
||||
set_global $infer-type/rf
|
||||
f64.const 0
|
||||
set_global $infer-type/rF
|
||||
block $break|0
|
||||
loop $repeat|0
|
||||
get_local $0
|
||||
i32.const 10
|
||||
i32.ge_s
|
||||
br_if $break|0
|
||||
loop $repeat|0
|
||||
get_local $0
|
||||
i32.const 10
|
||||
i32.ge_s
|
||||
i32.eqz
|
||||
if
|
||||
get_local $0
|
||||
i32.const 1
|
||||
i32.add
|
||||
set_local $0
|
||||
br $repeat|0
|
||||
unreachable
|
||||
end
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $null (; 1 ;) (type $v)
|
||||
|
Reference in New Issue
Block a user