Internals: Fix GCC constant warnings.

This commit is contained in:
Wilson Snyder
2017-09-15 18:26:09 -04:00
parent f1960273a0
commit fee4aba9ec
3 changed files with 3 additions and 5 deletions
+1 -2
View File
@@ -305,8 +305,7 @@ private:
return (nodep->lsbp()->castConst()
&& nodep->widthp()->castConst()
&& nodep->lsbConst()==0
&& (int)nodep->widthConst()==nodep->fromp()->width()
&& 1);
&& (int)nodep->widthConst()==nodep->fromp()->width());
}
bool operandSelExtend(AstSel* nodep) {
// A pattern created by []'s after offsets have been removed