mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-10 23:05:32 -04:00
Use fetch_add rather than +=
This commit is contained in:
1 parent
e27046098b
commit
2a8fa8612d
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -72,7 +72,7 @@ gb_internal Ast *alloc_ast_node(AstFile *f, AstKind kind) {
|
||||
node->kind = kind;
|
||||
node->file_id = f ? f->id : 0;
|
||||
|
||||
global_total_node_memory_allocated += size;
|
||||
global_total_node_memory_allocated.fetch_add(size);
|
||||
|
||||
return node;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user