diff options
Diffstat (limited to 'core/sync/sync_linux.odin')
| -rw-r--r-- | core/sync/sync_linux.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/sync/sync_linux.odin b/core/sync/sync_linux.odin index aa3c7a068..6474cd900 100644 --- a/core/sync/sync_linux.odin +++ b/core/sync/sync_linux.odin @@ -33,7 +33,7 @@ semaphore_destroy :: proc(s: ^Semaphore) { semaphore_post :: proc(s: ^Semaphore, count := 1) { // NOTE: SPEED: If there's one syscall to do this, we should use it instead of the loop. - for in 0..count-1 { + for in 0..<count { assert(unix.sem_post(&s.handle) == 0); } } |