mirror of https://github.com/YosysHQ/abc.git
Fix Segault in scl
Fixes a regression that was introduced in #232 by myself. Reverts back to correct version introduced in #228. This was likely introduced in a careless merge before creating PR #232.
This commit is contained in:
parent
0f11580fce
commit
6836863e55
|
|
@ -200,7 +200,7 @@ void Abc_SclTimeNtkPrint( SC_Man * p, int fShowAll, int fPrintPath )
|
|||
while ( pObj && Abc_ObjIsNode(pObj) )
|
||||
{
|
||||
i++;
|
||||
nLength = Abc_MaxInt( nLength, strlen(Abc_SclObjCell(pObj)->pName) );
|
||||
nLength = Abc_MaxInt( nLength, Abc_SclObjCell(pObj) ? strlen(Abc_SclObjCell(pObj)->pName) : 2 /* strlen("pi") */ );
|
||||
pObj = Abc_SclFindMostCriticalFanin( p, &fRise, pObj );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue