diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-10-03 21:49:18 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-10-03 21:49:18 -0700 |
commit | 56d3d7cd22f761004139a0512681eac57e638cfc (patch) | |
tree | 524b94bee7e1dfbdf14c8ff1dbba271a97abaf13 /src/base/abci/abcRec2.c | |
parent | 63c95405439b464f6d801e68c15f767bc6336637 (diff) | |
download | abc-56d3d7cd22f761004139a0512681eac57e638cfc.tar.gz abc-56d3d7cd22f761004139a0512681eac57e638cfc.tar.bz2 abc-56d3d7cd22f761004139a0512681eac57e638cfc.zip |
C++ portability changes.
Diffstat (limited to 'src/base/abci/abcRec2.c')
-rw-r--r-- | src/base/abci/abcRec2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base/abci/abcRec2.c b/src/base/abci/abcRec2.c index c84ea3ea..460fe71d 100644 --- a/src/base/abci/abcRec2.c +++ b/src/base/abci/abcRec2.c @@ -163,7 +163,7 @@ static inline int Rec_AppendObj( Abc_ManRec_t2 * p, Rec_Obj_t2 ** pObj ) if ( p->nRecObjs == p->nRecObjsAlloc ) { assert( p->nRecObjs > 0 ); - p->pRecObjs = realloc(p->pRecObjs, 2 * p->nRecObjsAlloc * p->recObjSize ); + p->pRecObjs = ABC_REALLOC( char, p->pRecObjs, 2 * p->nRecObjsAlloc * p->recObjSize ); memset( p->pRecObjs + p->nRecObjsAlloc * p->recObjSize, 0, p->recObjSize * p->nRecObjsAlloc ); p->nRecObjsAlloc *= 2; hasRealloced = 1; @@ -2177,7 +2177,7 @@ void Abc_NtkRecCutTruthFromLib2( Gia_Man_t * pGia2, Vec_Ptr_t * vNodes, int nLea Vec_PtrForEachEntry( Gia_Obj_t *, vNodes, pObj, i ) { Gia_ObjSetCopyF(pGia2, 0, pObj, i); - pSims = Vec_PtrEntry(vTtTemps, i); + pSims = (unsigned *)Vec_PtrEntry(vTtTemps, i); if ( i < nLeaves ) { Kit_TruthCopy( pSims, (unsigned *)Vec_PtrEntry(vTtElems, i), nInputs ); |