aboutsummaryrefslogtreecommitdiff
path: root/src/checker/type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/checker/type.cpp')
-rw-r--r--src/checker/type.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/checker/type.cpp b/src/checker/type.cpp
index e7cf827d3..fe5aaf5ce 100644
--- a/src/checker/type.cpp
+++ b/src/checker/type.cpp
@@ -112,6 +112,8 @@ struct Type {
b32 is_packed;
} Struct;
struct {
+ // IMPORTANT HACK(bill): The positions of fields and field_count
+ // must be same for Struct and Union
Entity **fields; // Entity_Variable
isize field_count;
} Union;