From fa4f3aa7ad3f9530f78f22bd8d0e00d168ab2509 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 19 Aug 2021 17:51:19 +0100 Subject: Correct atomic usage --- src/entity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/entity.cpp') diff --git a/src/entity.cpp b/src/entity.cpp index a916f3099..02b5f4a75 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -250,7 +250,7 @@ bool entity_has_deferred_procedure(Entity *e) { } -gb_global std::atomic global_entity_id = 0; +gb_global std::atomic global_entity_id; Entity *alloc_entity(EntityKind kind, Scope *scope, Token token, Type *type) { gbAllocator a = permanent_allocator(); -- cgit v1.2.3