summaryrefslogtreecommitdiffstats
path: root/src/base/acb/acb.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/acb/acb.h')
-rw-r--r--src/base/acb/acb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/base/acb/acb.h b/src/base/acb/acb.h
index 76188f2e..36300efd 100644
--- a/src/base/acb/acb.h
+++ b/src/base/acb/acb.h
@@ -416,6 +416,7 @@ static inline int Acb_ObjWhatFanin( Acb_Ntk_t * p, int iObj, int iFaninGiven )
static inline void Acb_ObjAddFanin( Acb_Ntk_t * p, int iObj, int iFanin )
{
int * pFanins = Acb_ObjFanins( p, iObj );
+ assert( iFanin > 0 );
assert( pFanins[ 1 + pFanins[0] ] == -1 );
pFanins[ 1 + pFanins[0]++ ] = iFanin;
}