mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 17:34:34 +00:00
Use next_pow2_isize
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user