Fix struct +: slices, bug605.

This commit is contained in:
Wilson Snyder
2013-01-17 21:48:35 -05:00
parent e7ba6ef492
commit f29f30dce0
3 changed files with 63 additions and 1 deletions
+3 -1
View File
@@ -352,7 +352,9 @@ private:
FromData fromdata = fromDataForArray(nodep, fromp, width!=1);
AstNodeDType* ddtypep = fromdata.m_dtypep;
VNumRange fromRange = fromdata.m_fromRange;
if (ddtypep->castBasicDType()) {
if (ddtypep->castBasicDType()
|| (ddtypep->castNodeClassDType()
&& ddtypep->castNodeClassDType()->packed())) {
AstSel* newp = NULL;
if (nodep->castSelPlus()) {
if (fromRange.littleEndian()) {