Use next_pow2_isize

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

No files matched your search

+1 -1
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);