aboutsummaryrefslogtreecommitdiff
path: root/src/queue.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-07-10 19:57:54 +0100
committergingerBill <bill@gingerbill.org>2021-07-10 19:57:54 +0100
commit0a61d4bf2b2d6e8c8d0c92410f6dcfd2b6046f86 (patch)
tree35fb694e1128eb3afd4838f5dbee8b9f790cef37 /src/queue.cpp
parent332461c0d2703ae6dad4e0fb6812b57ffa92815e (diff)
Use `next_pow2_isize`
Diffstat (limited to 'src/queue.cpp')
-rw-r--r--src/queue.cpp2
1 files changed, 1 insertions, 1 deletions
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 <typename T>
void mpmc_init(MPMCQueue<T> *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);