mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-11 15:27:06 -04:00
Make flags atomic for Entity and Type
This commit is contained in:
1 parent
df159dbae7
commit
0051cd12e2
3 files changed
+6
-6
No files matched your search
+1
-1
@@ -923,7 +923,7 @@ bool is_polymorphic_type_assignable(CheckerContext *c, Type *poly, Type *source,
|
||||
poly->kind = Type_EnumeratedArray;
|
||||
poly->cached_size = -1;
|
||||
poly->cached_align = -1;
|
||||
poly->flags = source->flags;
|
||||
poly->flags.exchange(source->flags);
|
||||
poly->failure = false;
|
||||
poly->EnumeratedArray.elem = source->EnumeratedArray.elem;
|
||||
poly->EnumeratedArray.index = source->EnumeratedArray.index;
|
||||
|
||||
Reference in new issue
Block a user