diff --git a/redGrapes/memory/allocator.cpp b/redGrapes/memory/allocator.cpp index 5a982283..34abc738 100644 --- a/redGrapes/memory/allocator.cpp +++ b/redGrapes/memory/allocator.cpp @@ -15,7 +15,7 @@ Allocator::Allocator() Allocator::Allocator( dispatch::thread::WorkerId worker_id ) : worker_id( - worker_id % SingletonContext::get().n_workers + SingletonContext::get().n_workers == 0u ? 0u : worker_id % SingletonContext::get().n_workers ) {}