More renames of asInt/toUInt where deemed correct

This commit is contained in:
Wilson Snyder
2008-09-04 11:03:46 -04:00
parent 99cf981c2f
commit ef69f36403
9 changed files with 17 additions and 16 deletions
+1 -1
View File
@@ -213,7 +213,7 @@ private:
V3Const::constifyParam(nodep->rhsp());
AstConst* constp = nodep->rhsp()->castConst();
if (!constp) { nodep->v3error("Replication value isn't a constant."); return; }
uint32_t times = constp->asInt();
uint32_t times = constp->toUInt();
if (times==0) { nodep->v3error("Replication value is 0."); times=1; }
nodep->width((nodep->lhsp()->width() * times),
(nodep->lhsp()->widthMin() * times));