diff options
| author | Edmund Grimley Evans <Edmund.Grimley.Evans@gmail.com> | 2015-11-19 18:26:47 +0000 |
|---|---|---|
| committer | Edmund Grimley Evans <Edmund.Grimley.Evans@gmail.com> | 2015-11-19 18:26:47 +0000 |
| commit | ba99a70cd88fd702d75b103fbadba380ca6c36bd (patch) | |
| tree | 62674dd8be96b98d5f8760d69d4c8dc4998ff26c /x86_64-gen.c | |
| parent | 553242c18a2387fb896df66eb9b5a502f0e87ff0 (diff) | |
| download | tinycc-ba99a70cd88fd702d75b103fbadba380ca6c36bd.tar.gz tinycc-ba99a70cd88fd702d75b103fbadba380ca6c36bd.tar.bz2 | |
Trivial changes to avoid some compiler warnings.
Diffstat (limited to 'x86_64-gen.c')
| -rw-r--r-- | x86_64-gen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/x86_64-gen.c b/x86_64-gen.c index d8dfaab..4ac1e93 100644 --- a/x86_64-gen.c +++ b/x86_64-gen.c @@ -77,7 +77,7 @@ enum { TREG_ST0 = 24, - TREG_MEM = 0x20, + TREG_MEM = 0x20 }; #define REX_BASE(reg) (((reg) >> 3) & 1) @@ -1703,7 +1703,7 @@ int gtst(int inv, int t) to our target if the result was unordered and test wasn't NE, otherwise if unordered we don't want to jump. */ vtop->c.i &= ~0x100; - if (!inv == (vtop->c.i != TOK_NE)) + if (inv == (vtop->c.i == TOK_NE)) o(0x067a); /* jp +6 */ else { |
