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:
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user