mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 14:48:47 +00:00
Remove initialization on static atomic
This commit is contained in:
@@ -304,7 +304,7 @@ gb_internal lbValue lb_hasher_proc_for_type(lbModule *m, Type *type) {
|
|||||||
return {(*found)->value, (*found)->type};
|
return {(*found)->value, (*found)->type};
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::atomic<u32> proc_index = 0;
|
static std::atomic<u32> proc_index;
|
||||||
|
|
||||||
char buf[32] = {};
|
char buf[32] = {};
|
||||||
isize n = gb_snprintf(buf, 32, "__$hasher%u", 1+proc_index.fetch_add(1));
|
isize n = gb_snprintf(buf, 32, "__$hasher%u", 1+proc_index.fetch_add(1));
|
||||||
|
|||||||
Reference in New Issue
Block a user