From 0a61d4bf2b2d6e8c8d0c92410f6dcfd2b6046f86 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 10 Jul 2021 19:57:54 +0100 Subject: Use `next_pow2_isize` --- src/queue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/queue.cpp') diff --git a/src/queue.cpp b/src/queue.cpp index 296a21ba3..7087af03e 100644 --- a/src/queue.cpp +++ b/src/queue.cpp @@ -28,7 +28,7 @@ struct MPMCQueue { template void mpmc_init(MPMCQueue *q, gbAllocator a, isize size) { - size = next_pow2(size); + size = next_pow2_isize(size); GB_ASSERT(gb_is_power_of_two(size)); gb_mutex_init(&q->mutex); -- cgit v1.2.3