diff options
| author | gingerBill <bill@gingerbill.org> | 2021-07-12 11:03:12 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-07-12 11:03:12 +0100 |
| commit | 76707e1d2f3a33bc5dabf367318ccd76ce242b6a (patch) | |
| tree | f8858e15dba0312f85e0b25f7be12a97fd420c9b /src/check_expr.cpp | |
| parent | ff2e5c3efe931e6a088c2368b0ce5d5c21f03c65 (diff) | |
Add sanity casts for 32/64 bit correctness
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index e3e73c391..a0565faaa 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -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; |