From 8c797a9bd1969e18495b7cd9674adef3e169a445 Mon Sep 17 00:00:00 2001 From: Anton Harniakou Date: Tue, 15 Apr 2025 21:48:53 +0300 Subject: [PATCH] Use eq_ignore_ascii_case to compare strings --- core/translate/expr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/translate/expr.rs b/core/translate/expr.rs index 6520a8b14..77758cc8f 100644 --- a/core/translate/expr.rs +++ b/core/translate/expr.rs @@ -1942,7 +1942,7 @@ pub fn translate_expr( // If we don't do this -1 * 9223372036854775808 will overflow and parse will fail // and trigger conversion to Real. if numeric_value == "9223372036854775808" - || numeric_value.to_lowercase() == "0x7fffffffffffffff" + || numeric_value.eq_ignore_ascii_case("0x7fffffffffffffff") { program.emit_insn(Insn::Integer { value: i64::MIN,