mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 06:38:47 +00:00
Fix aliasing of overloaded procedures from other scopes
This commit is contained in:
+5
-6
@@ -159,8 +159,7 @@ Allocator :: struct #ordered {
|
||||
|
||||
|
||||
Context :: struct #ordered {
|
||||
thread_guid: int;
|
||||
thread_index: int;
|
||||
thread_id: int;
|
||||
|
||||
allocator: Allocator;
|
||||
|
||||
@@ -256,8 +255,8 @@ __init_context_from_ptr :: proc(c: ^Context, other: ^Context) #cc_contextless {
|
||||
if c.allocator.procedure == nil {
|
||||
c.allocator = default_allocator();
|
||||
}
|
||||
if c.thread_guid == 0 {
|
||||
c.thread_guid = os.current_thread_id();
|
||||
if c.thread_id == 0 {
|
||||
c.thread_id = os.current_thread_id();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -267,8 +266,8 @@ __init_context :: proc(c: ^Context) #cc_contextless {
|
||||
if c.allocator.procedure == nil {
|
||||
c.allocator = default_allocator();
|
||||
}
|
||||
if c.thread_guid == 0 {
|
||||
c.thread_guid = os.current_thread_id();
|
||||
if c.thread_id == 0 {
|
||||
c.thread_id = os.current_thread_id();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user