diff options
author | Baruch Sterin <baruchs@gmail.com> | 2015-10-16 14:02:30 -0700 |
---|---|---|
committer | Baruch Sterin <baruchs@gmail.com> | 2015-10-16 14:02:30 -0700 |
commit | 8810ef12da3f56523a95863d6583f09531dfe8de (patch) | |
tree | 934ad43bcf6a8fac9f1effeee34963f443896056 /src/base/bac/bacNtk.c | |
parent | 8268553369175ea767e05fc02ecc75f7065d7b87 (diff) | |
download | abc-8810ef12da3f56523a95863d6583f09531dfe8de.tar.gz abc-8810ef12da3f56523a95863d6583f09531dfe8de.tar.bz2 abc-8810ef12da3f56523a95863d6583f09531dfe8de.zip |
Fix C++ compilation errors
Diffstat (limited to 'src/base/bac/bacNtk.c')
-rw-r--r-- | src/base/bac/bacNtk.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/base/bac/bacNtk.c b/src/base/bac/bacNtk.c index 4d2cd665..cd08b0b6 100644 --- a/src/base/bac/bacNtk.c +++ b/src/base/bac/bacNtk.c @@ -130,10 +130,10 @@ static inline int Bac_GetTypeId( Bac_ObjType_t Type ) } void Bac_ManSetupTypes( char ** pNames, char ** pSymbs ) { - Bac_ObjType_t Type; + int Type; for ( Type = 1; Type < BAC_BOX_UNKNOWN; Type++ ) { - int Id = Bac_GetTypeId( Type ); + int Id = Bac_GetTypeId( (Bac_ObjType_t)Type ); pNames[Type] = s_Types[Id].pName; pSymbs[Type] = s_Types[Id].pSymb; } @@ -160,14 +160,14 @@ char * Bac_NtkGenerateName( Bac_Ntk_t * p, Bac_ObjType_t Type, Vec_Int_t * vBits Bac_ObjType_t Bac_NameToType( char * pName ) { - Bac_ObjType_t i; + int i; if ( strncmp(pName, s_Pref, strlen(s_Pref)) ) - return 0; + return BAC_OBJ_NONE; pName += strlen(s_Pref); for ( i = 1; i < BAC_BOX_UNKNOWN; i++ ) if ( !strncmp(pName, s_Types[i].pName, strlen(s_Types[i].pName)) ) return s_Types[i].Type; - return 0; + return BAC_OBJ_NONE; } Vec_Int_t * Bac_NameToRanges( char * pName ) { @@ -601,4 +601,3 @@ Bac_Man_t * Bac_ManCollapse( Bac_Man_t * p ) ABC_NAMESPACE_IMPL_END - |