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.
master
Thomas Preud'homme 2012-11-23 23:45:30 +01:00
parent 168aed4984
commit 05b02a5581
1 changed files with 1 additions and 1 deletions

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;
}