diff options
| author | bellard <bellard> | 2006-10-28 14:10:07 +0000 |
|---|---|---|
| committer | bellard <bellard> | 2006-10-28 14:10:07 +0000 |
| commit | 38d2e8b9d8dae9680603d66fe51c1b287141bd7e (patch) | |
| tree | cd5bd4c330d9b25b919452e97290e57678363811 /i386-gen.c | |
| parent | 3b8cd565be2bed270baa495310051de50cd1cf93 (diff) | |
| download | tinycc-38d2e8b9d8dae9680603d66fe51c1b287141bd7e.tar.gz tinycc-38d2e8b9d8dae9680603d66fe51c1b287141bd7e.tar.bz2 | |
Bug fix: A long long value used as a test expression ignores the upper 32 bits at runtime (Dave Dodge)
Diffstat (limited to 'i386-gen.c')
| -rw-r--r-- | i386-gen.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } |
