summaryrefslogtreecommitdiffstats
path: root/src/base
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2016-06-08 22:25:12 -0500
committerAlan Mishchenko <alanmi@berkeley.edu>2016-06-08 22:25:12 -0500
commit699dd39035fad58037d49123161f6a1735f6e3a4 (patch)
tree6980650ff5ea8f437bbc64d5a8906fc9d5279a68 /src/base
parentcad3d8d4199b861db1044a485ee4f53712ccb1bc (diff)
downloadabc-699dd39035fad58037d49123161f6a1735f6e3a4.tar.gz
abc-699dd39035fad58037d49123161f6a1735f6e3a4.tar.bz2
abc-699dd39035fad58037d49123161f6a1735f6e3a4.zip
Support bit-blasting of shifts with more than 32 bits (fix).
Diffstat (limited to 'src/base')
-rw-r--r--src/base/wlc/wlcBlast.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base/wlc/wlcBlast.c b/src/base/wlc/wlcBlast.c
index fbace4ab..79ad3659 100644
--- a/src/base/wlc/wlcBlast.c
+++ b/src/base/wlc/wlcBlast.c
@@ -148,7 +148,7 @@ void Wlc_BlastShiftRight( Gia_Man_t * pNew, int * pNum, int nNum, int * pShift,
int i, iRes = pShift[nShiftMax];
for ( i = nShiftMax + 1; i < nShift; i++ )
iRes = Gia_ManHashOr( pNew, iRes, pShift[i] );
- pShift[nShiftMax] = iRes;
+ pShift[nShiftMax++] = iRes;
}
else
nShiftMax = nShift;
@@ -181,7 +181,7 @@ void Wlc_BlastShiftLeft( Gia_Man_t * pNew, int * pNum, int nNum, int * pShift, i
int i, iRes = pShift[nShiftMax];
for ( i = nShiftMax + 1; i < nShift; i++ )
iRes = Gia_ManHashOr( pNew, iRes, pShift[i] );
- pShift[nShiftMax] = iRes;
+ pShift[nShiftMax++] = iRes;
}
else
nShiftMax = nShift;