From c5389dbbf2790602eb4589f17eadb8e0d49984c0 Mon Sep 17 00:00:00 2001 From: Mark Thom Date: Thu, 21 Aug 2025 17:34:21 -0700 Subject: [PATCH] Use from_str_radix for BigInt in parse_integer_by_radix (#3025, #3033) --- src/parser/lexer.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/parser/lexer.rs b/src/parser/lexer.rs index 0ca5ef69..3c6f99da 100644 --- a/src/parser/lexer.rs +++ b/src/parser/lexer.rs @@ -714,8 +714,7 @@ impl<'a, R: CharRead> Lexer<'a, R> { }) }) .or_else(|_| { - token - .parse::() + Integer::from_str_radix(token, radix) .map(|n| Number::BigInt(arena_alloc!(n, &mut self.machine_st.arena))) .map_err(|_| ParserError::ParseBigInt(self.line_num, self.col_num)) }) -- 2.54.0