Core library clean up: Make range expressions more consistent and replace uses of .. with ..=
This commit is contained in:
1 parent
3ca887a60a
commit
86649e6b44
23 files changed
+80
-84
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user