Fix cppcheck 1.71 issues. No functional change intended.

This commit is contained in:
Wilson Snyder
2016-02-04 18:30:21 -05:00
parent d1acaea611
commit b488666c1e
7 changed files with 18 additions and 10 deletions
+2 -2
View File
@@ -275,8 +275,8 @@ class SliceVisitor : public AstNVisitor {
}
UINFO(9," ArraySel-child: "<<topp<<endl);
AstArraySel* newp = new AstArraySel(nodep->fileline(), topp,
// "lsb-lsb": Arrays are zero-based so index 0 is always lsb
new AstConst(nodep->fileline(), lsb-lsb));
// Arrays are zero-based so index 0 is always lsb (e.g. lsb-lsb -> 0)
new AstConst(nodep->fileline(), 0));
if (!newp->dtypep()) {
newp->v3fatalSrc("ArraySel dtyping failed when resolving slice"); // see ArraySel constructor
}