diff options
Diffstat (limited to 'src/misc/tim/timBox.c')
-rw-r--r-- | src/misc/tim/timBox.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/misc/tim/timBox.c b/src/misc/tim/timBox.c index 65b0ae6e..c1176527 100644 --- a/src/misc/tim/timBox.c +++ b/src/misc/tim/timBox.c @@ -189,10 +189,14 @@ int Tim_ManBoxOutputNum( Tim_Man_t * p, int iBox ) ***********************************************************************/ float * Tim_ManBoxDelayTable( Tim_Man_t * p, int iBox ) { + float * pTable; Tim_Box_t * pBox = (Tim_Box_t *)Vec_PtrEntry( p->vBoxes, iBox ); if ( pBox->iDelayTable < 0 ) return NULL; - return (float *)Vec_PtrEntry( p->vDelayTables, pBox->iDelayTable ); + pTable = (float *)Vec_PtrEntry( p->vDelayTables, pBox->iDelayTable ); + assert( (int)pTable[1] == pBox->nInputs ); + assert( (int)pTable[2] == pBox->nOutputs ); + return pTable; } //////////////////////////////////////////////////////////////////////// |