Internals: In AstBasicDType avoid use of Range for constants. No functional change.

This commit is contained in:
Wilson Snyder
2012-02-20 11:48:31 -05:00
parent 7caafb4014
commit d699247269
11 changed files with 45 additions and 24 deletions
+3 -3
View File
@@ -453,9 +453,9 @@ void EmitCSyms::emitSymImp() {
string bounds;
if (AstBasicDType* basicp = varp->basicp()) {
// Range is always first, it's not in "C" order
if (basicp->rangep()) {
bounds += " ,"; bounds += cvtToStr(basicp->rangep()->msbConst());
bounds += ","; bounds += cvtToStr(basicp->rangep()->lsbConst());
if (basicp->isRanged()) {
bounds += " ,"; bounds += cvtToStr(basicp->msb());
bounds += ","; bounds += cvtToStr(basicp->lsb());
dim++;
}
for (AstNodeDType* dtypep=varp->dtypep(); dtypep; ) {