diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2015-07-08 15:04:26 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2015-07-08 15:04:26 -0700 |
commit | 609be7a1144a898143819842e34e637865d4e24b (patch) | |
tree | 1830448562b2c0513b6acef7897193004d915dd5 /src/base/cba/cbaWriteVer.c | |
parent | 4f2d2e0e962a395174679def7cf4de217f559635 (diff) | |
download | abc-609be7a1144a898143819842e34e637865d4e24b.tar.gz abc-609be7a1144a898143819842e34e637865d4e24b.tar.bz2 abc-609be7a1144a898143819842e34e637865d4e24b.zip |
C++ compiler typecast problem.
Diffstat (limited to 'src/base/cba/cbaWriteVer.c')
-rw-r--r-- | src/base/cba/cbaWriteVer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base/cba/cbaWriteVer.c b/src/base/cba/cbaWriteVer.c index f735257a..dfc6c87c 100644 --- a/src/base/cba/cbaWriteVer.c +++ b/src/base/cba/cbaWriteVer.c @@ -55,7 +55,7 @@ void Prs_ManWriteVerilogConcat( FILE * pFile, Prs_Ntk_t * p, int Con ) void Prs_ManWriteVerilogSignal( FILE * pFile, Prs_Ntk_t * p, int Sig ) { int Value = Abc_Lit2Var2( Sig ); - Prs_ManType_t Type = Abc_Lit2Att2( Sig ); + Prs_ManType_t Type = (Prs_ManType_t)Abc_Lit2Att2( Sig ); if ( Type == CBA_PRS_NAME || Type == CBA_PRS_CONST ) fprintf( pFile, "%s", Prs_NtkStr(p, Value) ); else if ( Type == CBA_PRS_SLICE ) @@ -110,7 +110,7 @@ void Prs_ManWriteVerilogBoxes( FILE * pFile, Prs_Ntk_t * p ) Vec_Int_t * vBox; int i; Prs_NtkForEachBox( p, vBox, i ) { - int NtkId = Prs_BoxNtk(p, i); + Cba_ObjType_t NtkId = Prs_BoxNtk(p, i); if ( NtkId == CBA_BOX_MUX ) Prs_ManWriteVerilogMux( pFile, p, vBox ); else if ( Prs_BoxIsNode(p, i) ) // node ------- check order of fanins |