From 8810ef12da3f56523a95863d6583f09531dfe8de Mon Sep 17 00:00:00 2001 From: Baruch Sterin Date: Fri, 16 Oct 2015 14:02:30 -0700 Subject: Fix C++ compilation errors --- src/base/wlc/wlcReadSmt.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/base/wlc/wlcReadSmt.c') diff --git a/src/base/wlc/wlcReadSmt.c b/src/base/wlc/wlcReadSmt.c index e7ee4d16..2c158a48 100644 --- a/src/base/wlc/wlcReadSmt.c +++ b/src/base/wlc/wlcReadSmt.c @@ -91,9 +91,9 @@ static inline char * Smt_GetTypeName( Smt_LineType_t Type ) } static inline void Smt_AddTypes( Abc_Nam_t * p ) { - Smt_LineType_t Type; + int Type; for ( Type = 1; Type < SMT_PRS_END; Type++ ) - Abc_NamStrFindOrAdd( p, Smt_GetTypeName(Type), NULL ); + Abc_NamStrFindOrAdd( p, Smt_GetTypeName((Smt_LineType_t)Type), NULL ); assert( Abc_NamObjNumMax(p) == SMT_PRS_END ); } @@ -911,4 +911,3 @@ Wlc_Ntk_t * Wlc_ReadSmt( char * pFileName ) ABC_NAMESPACE_IMPL_END - -- cgit v1.2.3