From 191af2e87bac91ef3b27d3feddd07276bd0de44e Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 13 Jan 2013 11:30:05 -0500 Subject: [PATCH] Internals: Make SelPlus consistent with other branches. No functional change intended. --- src/V3WidthSel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/V3WidthSel.cpp b/src/V3WidthSel.cpp index 4cce95564..a257e7607 100644 --- a/src/V3WidthSel.cpp +++ b/src/V3WidthSel.cpp @@ -342,7 +342,7 @@ private: // SELPLUS(from,lsb,width) -> SEL(from, lsb-vector_lsb, width) newp = new AstSel (nodep->fileline(), fromp, - newSubLsbOf(rhsp, basefromp), + newSubNeg(rhsp, adtypep->lsb()), widthp); } } else if (nodep->castSelMinus()) {