arm-gen.c: Invalid operator test always false

Invalid operator test is always false in gen_opf for arm (found with
cppcheck). This patch fixes the issue.
This commit is contained in:
Thomas Preud'homme 2012-11-23 23:45:30 +01:00
parent 168aed4984
commit 05b02a5581

View File

@ -1566,7 +1566,7 @@ void gen_opf(int op)
x|=0x800000;
break;
default:
if(op < TOK_ULT && op > TOK_GT) {
if(op < TOK_ULT || op > TOK_GT) {
tcc_error("unknown fp op %x!",op);
return;
}