Use next_pow2_isize

This commit is contained in:
gingerBill
2021-07-10 19:57:54 +01:00
parent 332461c0d2
commit 0a61d4bf2b
3 changed files with 20 additions and 18 deletions

View File

@@ -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);