mirror of
https://github.com/frida/tinycc
synced 2025-01-23 19:52:05 +03:00
Bug fix: A long long value used as a test expression ignores the upper 32 bits at runtime (Dave Dodge)
This commit is contained in:
parent
3b8cd565be
commit
38d2e8b9d8
@ -600,7 +600,8 @@ int gtst(int inv, int t)
|
||||
gsym(vtop->c.i);
|
||||
}
|
||||
} else {
|
||||
if (is_float(vtop->type.t)) {
|
||||
if (is_float(vtop->type.t) ||
|
||||
(vtop->type.t & VT_BTYPE) == VT_LLONG) {
|
||||
vpushi(0);
|
||||
gen_op(TOK_NE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user