mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-12 02:40:41 -04:00
Add sanity casts for 32/64 bit correctness
This commit is contained in:
1 parent
ff2e5c3efe
commit
76707e1d2f
10 files changed
+66
-48
No files matched your search
+1
-1
@@ -8118,7 +8118,7 @@ ExprKind check_expr_base_internal(CheckerContext *c, Operand *o, Ast *node, Type
|
||||
|
||||
o->mode = Addressing_Constant;
|
||||
o->type = t;
|
||||
o->value = exact_value_string(substring(s, indices[0], indices[1]));
|
||||
o->value = exact_value_string(substring(s, cast(isize)indices[0], cast(isize)indices[1]));
|
||||
}
|
||||
|
||||
case_end;
|
||||
|
||||
Reference in new issue
Block a user