Bug fix in SMT-LIB parser.

This commit is contained in:
Alan Mishchenko 2015-06-30 09:49:55 -07:00
parent 8c1e81a7c8
commit cc0954e022
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ static inline int Smt_PrsBuildConstant( Wlc_Ntk_t * pNtk, char * pStr, int nBits
Vec_Int_t * vFanins = Vec_IntAlloc( 10 );
if ( pStr[0] != '#' ) // decimal
{
if ( pStr[0] >= 0 && pStr[0] <= 9 )
if ( pStr[0] >= '0' && pStr[0] <= '9' )
{
int Number = atoi( pStr );
nBits = Abc_Base2Log( Number+1 );