mirror of https://github.com/YosysHQ/abc.git
Fix compile errors when using namespace with clang.
This commit is contained in:
parent
6ec77b5d95
commit
9ac7b05e2a
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in New Issue