From 76707e1d2f3a33bc5dabf367318ccd76ce242b6a Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 12 Jul 2021 11:03:12 +0100 Subject: Add sanity casts for 32/64 bit correctness --- src/check_expr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/check_expr.cpp') 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; -- cgit v1.2.3