From dc89cc6bb0820992fc558d40851c1210c33a36a3 Mon Sep 17 00:00:00 2001 From: adienes <51664769+adienes@users.noreply.github.com> Date: Tue, 13 May 2025 16:55:44 -0400 Subject: [PATCH] update simple_hash with length --- src/lexer.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lexer.jl b/src/lexer.jl index 3356747..3bc0c94 100644 --- a/src/lexer.jl +++ b/src/lexer.jl @@ -1059,7 +1059,8 @@ end function simple_hash(str) ind = 1 h = UInt64(0) - while ind <= length(str) + L = length(str) + while ind <= L h = simple_hash(str[ind], h) ind = nextind(str, ind) end