diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/opt/fxch/FxchSCHashTable.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/opt/fxch/FxchSCHashTable.c b/src/opt/fxch/FxchSCHashTable.c index f854a1fa..80753677 100644 --- a/src/opt/fxch/FxchSCHashTable.c +++ b/src/opt/fxch/FxchSCHashTable.c @@ -195,7 +195,8 @@ int Fxch_SCHashTableInsert( Fxch_SCHashTable_t* pSCHashTable, } else if ( pBin->Size == pBin->Cap ) { - pBin->Cap = 2 * pBin->Size; + assert(pBin->Cap <= 0xAAAA); + pBin->Cap = ( pBin->Cap >> 1 ) * 3; pBin->vSCData = ABC_REALLOC( Fxch_SubCube_t, pBin->vSCData, pBin->Cap ); } |