aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--i386-gen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/i386-gen.c b/i386-gen.c
index b1024a7..77505d7 100644
--- a/i386-gen.c
+++ b/i386-gen.c
@@ -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);
}