diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2013-01-08 13:28:58 +0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2013-01-08 13:28:58 +0800 |
commit | 621599fce6a945b47eb67a6826aa9c4b8f22b1b1 (patch) | |
tree | 7cc74fcc4a2471c74a4b648f4d7b6f61e08be868 | |
parent | 25e27a3a3e9e4f5f8835343479b5021ba68e09e0 (diff) | |
download | abc-621599fce6a945b47eb67a6826aa9c4b8f22b1b1.tar.gz abc-621599fce6a945b47eb67a6826aa9c4b8f22b1b1.tar.bz2 abc-621599fce6a945b47eb67a6826aa9c4b8f22b1b1.zip |
Fixing C++ compilation issues.
-rw-r--r-- | src/aig/gia/giaTest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/aig/gia/giaTest.c b/src/aig/gia/giaTest.c index 3c2fede0..73a199e5 100644 --- a/src/aig/gia/giaTest.c +++ b/src/aig/gia/giaTest.c @@ -179,15 +179,15 @@ static inline int Mig_ObjIsTravIdCurrentId( Mig_Man_t * p, int Id ) { // iterators over objects #define Mig_ManForEachObj( p, pObj ) \ for ( p->iPage = 0; p->iPage < Vec_PtrSize(&p->vPages) && \ - ((p->pPage) = Vec_PtrEntry(&p->vPages, p->iPage)); p->iPage++ ) \ + ((p->pPage) = (Mig_Obj_t *)Vec_PtrEntry(&p->vPages, p->iPage)); p->iPage++ ) \ for ( pObj = p->pPage; !Mig_ObjIsNone(pObj); pObj++ ) #define Mig_ManForEachObj1( p, pObj ) \ for ( p->iPage = 0; p->iPage < Vec_PtrSize(&p->vPages) && \ - ((p->pPage) = Vec_PtrEntry(&p->vPages, p->iPage)); p->iPage++ ) \ + ((p->pPage) = (Mig_Obj_t *)Vec_PtrEntry(&p->vPages, p->iPage)); p->iPage++ ) \ for ( pObj = p->pPage + (p->iPage == 0); !Mig_ObjIsNone(pObj); pObj++ ) #define Mig_ManForEachObjReverse( p, pObj ) \ for ( p->iPage = Vec_PtrSize(&p->vPages) - 1; p->iPage >= 0 && \ - ((p->pPage) = Vec_PtrEntry(&p->vPages, p->iPage)); p->iPage-- ) \ + ((p->pPage) = (Mig_Obj_t *)Vec_PtrEntry(&p->vPages, p->iPage)); p->iPage-- ) \ for ( pObj = (p->iPage == Vec_PtrSize(&p->vPages) - 1) ? \ Mig_ManObj(p, Mig_ManObjNum(p)-1) : p->pPage + MIG_BASE; \ pObj - p->pPage >= 0; pObj-- ) |