Skip to content

Commit 8c797a9

Browse files
committed
Use eq_ignore_ascii_case to compare strings
1 parent 0cebeef commit 8c797a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/translate/expr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1942,7 +1942,7 @@ pub fn translate_expr(
19421942
// If we don't do this -1 * 9223372036854775808 will overflow and parse will fail
19431943
// and trigger conversion to Real.
19441944
if numeric_value == "9223372036854775808"
1945-
|| numeric_value.to_lowercase() == "0x7fffffffffffffff"
1945+
|| numeric_value.eq_ignore_ascii_case("0x7fffffffffffffff")
19461946
{
19471947
program.emit_insn(Insn::Integer {
19481948
value: i64::MIN,

0 commit comments

Comments
 (0)