diff --git a/service/ptos/ex/pool.c b/service/ptos/ex/pool.c index 15601e6..08e4ca0 100644 --- a/service/ptos/ex/pool.c +++ b/service/ptos/ex/pool.c @@ -48,9 +48,9 @@ PoolComputeLevelIndex(USIZE ByteCount) } /* Subtract the right side */ - TmpCount -= POOL_MIN_LOG2 + 1; - TmpCount %= POOL_LEVEL_MAX; - return TmpCount; + Log2Sum -= POOL_MIN_LOG2 + 1; + Log2Sum %= POOL_LEVEL_MAX; + return Log2Sum; } /*