diff options
author | Mathias Soeken <mathias.soeken@epfl.ch> | 2016-08-19 13:24:29 +0200 |
---|---|---|
committer | Mathias Soeken <mathias.soeken@epfl.ch> | 2016-08-19 13:24:29 +0200 |
commit | 9ac7b05e2ae28f8868b06ce4f99c441d3d0ca268 (patch) | |
tree | 1b41002a361154ebeb90ed9ec6b759b567c78d1f /src | |
parent | 6ec77b5d95d603d8bce5863248f82465afb78e93 (diff) | |
download | abc-9ac7b05e2ae28f8868b06ce4f99c441d3d0ca268.tar.gz abc-9ac7b05e2ae28f8868b06ce4f99c441d3d0ca268.tar.bz2 abc-9ac7b05e2ae28f8868b06ce4f99c441d3d0ca268.zip |
Fix compile errors when using namespace with clang.
Diffstat (limited to 'src')
-rw-r--r-- | src/base/abci/abcCollapse.c | 2 | ||||
-rw-r--r-- | src/base/abci/abcExact.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/base/abci/abcCollapse.c b/src/base/abci/abcCollapse.c index 25d78b04..8c2b3b39 100644 --- a/src/base/abci/abcCollapse.c +++ b/src/base/abci/abcCollapse.c @@ -922,7 +922,7 @@ Abc_Ntk_t * Abc_NtkFromSopsInt( Abc_Ntk_t * pNtk, int nCubeLim, int nBTLimit, in vSupp = Vec_WecEntry( vSupps, i ); Vec_IntForEachEntry( vSupp, iCi, k ) Abc_ObjAddFanin( pNodeNew, Abc_NtkCi(pNtkNew, iCi) ); - pNodeNew->pData = Abc_SopRegister( (Mem_Flex_t *)pNtkNew->pManFunc, Vec_PtrEntry( vSops, i ) ); + pNodeNew->pData = Abc_SopRegister( (Mem_Flex_t *)pNtkNew->pManFunc, (const char*)Vec_PtrEntry( vSops, i ) ); assert( pNodeNew->pData != (void *)(ABC_PTRINT_T)1 ); Abc_ObjAddFanin( pNode->pCopy, pNodeNew ); } diff --git a/src/base/abci/abcExact.c b/src/base/abci/abcExact.c index 7d968b70..506eeabb 100644 --- a/src/base/abci/abcExact.c +++ b/src/base/abci/abcExact.c @@ -1108,7 +1108,7 @@ static Gia_Man_t * Ses_ManExtractGia( char const * pSol ) { nObj = Gia_ManAppendCi( pGia ); Vec_IntPush( pGates, nObj ); - Vec_PtrSetEntry( pGia->vNamesIn, i, Extra_UtilStrsav( Vec_PtrEntry( vNames, i ) ) ); + Vec_PtrSetEntry( pGia->vNamesIn, i, Extra_UtilStrsav( (const char*)Vec_PtrEntry( vNames, i ) ) ); } /* gates */ @@ -1150,7 +1150,7 @@ static Gia_Man_t * Ses_ManExtractGia( char const * pSol ) if ( Abc_LitIsCompl( *p ) ) nObj = Abc_LitNot( nObj ); Gia_ManAppendCo( pGia, nObj ); - Vec_PtrSetEntry( pGia->vNamesOut, h, Extra_UtilStrsav( Vec_PtrEntry( vNames, pSol[ABC_EXACT_SOL_NVARS] + h ) ) ); + Vec_PtrSetEntry( pGia->vNamesOut, h, Extra_UtilStrsav( (const char*)Vec_PtrEntry( vNames, pSol[ABC_EXACT_SOL_NVARS] + h ) ) ); p += ( 2 + pSol[ABC_EXACT_SOL_NVARS] ); } Abc_NodeFreeNames( vNames ); |