mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-20 19:34:25 -04:00
Fix range in statement bug caused by incorrectly assigned addressing mode #461
This commit is contained in:
1 parent
f9aaff99c6
commit
dbdbbcd60f
4 files changed
+11
-90
No files matched your search
+3
-1
@@ -1033,7 +1033,9 @@ void add_type_and_value(CheckerInfo *i, Ast *expr, AddressingMode mode, Type *ty
|
||||
|
||||
expr->tav.mode = mode;
|
||||
expr->tav.type = type;
|
||||
expr->tav.value = value;
|
||||
if (mode == Addressing_Constant || mode == Addressing_Invalid) {
|
||||
expr->tav.value = value;
|
||||
}
|
||||
}
|
||||
|
||||
void add_entity_definition(CheckerInfo *i, Ast *identifier, Entity *entity) {
|
||||
|
||||
Reference in new issue
Block a user