picasso_assembler: Silence a -Wlogical-op-parenthesis warning

This commit is contained in:
Lioncash 2017-12-27 20:48:51 -05:00 committed by fincs
parent 708ce762e0
commit 299c35d6fc

View File

@ -787,7 +787,7 @@ static int parseReg(char* pos, int& outReg, int& outSw, int* idxType = NULL)
return throwError("invalid boolean uniform register: %s\n", pos); return throwError("invalid boolean uniform register: %s\n", pos);
break; break;
} }
if (idxType && *idxType && outReg < 0x20 || outReg >= 0x80) if (idxType && *idxType && (outReg < 0x20 || outReg >= 0x80))
return throwError("index register not allowed with this kind of register\n"); return throwError("index register not allowed with this kind of register\n");
outReg += regOffset; outReg += regOffset;
return 0; return 0;