mirror of
git://repo.or.cz/tinycc.git
synced 2026-07-05 10:58:41 +08: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);
|
gsym(vtop->c.i);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (is_float(vtop->type.t)) {
|
if (is_float(vtop->type.t) ||
|
||||||
|
(vtop->type.t & VT_BTYPE) == VT_LLONG) {
|
||||||
vpushi(0);
|
vpushi(0);
|
||||||
gen_op(TOK_NE);
|
gen_op(TOK_NE);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user