diff --git a/src/opt/lpk/lpkCut.c b/src/opt/lpk/lpkCut.c index 41cfaed5f5..f19decff02 100644 --- a/src/opt/lpk/lpkCut.c +++ b/src/opt/lpk/lpkCut.c @@ -141,7 +141,7 @@ unsigned * Lpk_CutTruth_rec( Hop_Man_t * pMan, Hop_Obj_t * pObj, int nVars, Vec_ assert( !Hop_IsComplement(pObj) ); if ( pObj->pData ) { - assert( ((unsigned)(ABC_PTRUINT_T)pObj->pData) & 0xffff0000 ); + assert( ((ABC_PTRUINT_T)pObj->pData) > 0xffff ); // catch small int values return (unsigned *)pObj->pData; } // get the plan for a new truth table @@ -197,7 +197,7 @@ unsigned * Lpk_CutTruth( Lpk_Man_t * p, Lpk_Cut_t * pCut, int fInv ) // set the initial truth tables at the fanins Abc_ObjForEachFanin( pObj, pFanin, k ) { - assert( ((unsigned)(ABC_PTRUINT_T)pFanin->pCopy) & 0xffff0000 ); + assert( ((ABC_PTRUINT_T)pFanin->pCopy) > 0xffff ); // catch small int values or NULL Hop_ManPi( pManHop, k )->pData = pFanin->pCopy; } // compute the truth table of internal nodes