mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 22:28:46 +00:00
Change cast syntax, int(x), []byte(s), (^int)(p)
This commit is contained in:
+2
-2
@@ -13,7 +13,7 @@ Mutex :: struct {
|
||||
}
|
||||
|
||||
current_thread_id :: proc() -> i32 {
|
||||
return win32.GetCurrentThreadId() as i32;
|
||||
return i32(win32.GetCurrentThreadId());
|
||||
}
|
||||
|
||||
semaphore_init :: proc(s: ^Semaphore) {
|
||||
@@ -25,7 +25,7 @@ semaphore_destroy :: proc(s: ^Semaphore) {
|
||||
}
|
||||
|
||||
semaphore_post :: proc(s: ^Semaphore, count: int) {
|
||||
win32.ReleaseSemaphore(s.handle, count as i32, nil);
|
||||
win32.ReleaseSemaphore(s.handle, i32(count), nil);
|
||||
}
|
||||
|
||||
semaphore_release :: proc(s: ^Semaphore) #inline { semaphore_post(s, 1); }
|
||||
|
||||
Reference in New Issue
Block a user