Commit d05fe039 by Alan Mishchenko

Suggested bug fix in 'amap'.

parent 1f93bfb9
...@@ -242,8 +242,11 @@ Amap_Gat_t * Amap_LibFindGate( Amap_Lib_t * p, unsigned uTruth ) ...@@ -242,8 +242,11 @@ Amap_Gat_t * Amap_LibFindGate( Amap_Lib_t * p, unsigned uTruth )
Amap_Gat_t * pGate; Amap_Gat_t * pGate;
int i; int i;
Vec_PtrForEachEntry( Amap_Gat_t *, p->vSorted, pGate, i ) Vec_PtrForEachEntry( Amap_Gat_t *, p->vSorted, pGate, i )
{
if (( pGate == NULL ) || ( pGate->pFunc == NULL )) continue;
if ( pGate->nPins <= 5 && pGate->pFunc[0] == uTruth ) if ( pGate->nPins <= 5 && pGate->pFunc[0] == uTruth )
return pGate; return pGate;
}
return NULL; return NULL;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment