From b7edf8341ad4fc22cc0cee903862bf6ef8e76690 Mon Sep 17 00:00:00 2001 From: "Chloe M." Date: Tue, 14 Jul 2026 22:02:23 +0000 Subject: [PATCH] ptos: pool: Fix PoolComputeLevelIndex() to match formula Signed-off-by: Chloe M. --- service/ptos/ex/pool.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } /*