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:
bellard 2006-10-28 14:10:07 +00:00
parent 3b8cd565be
commit 38d2e8b9d8

View File

@ -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);
}