From af4979d972a517abe6eb442e914107ee173d9917 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Thu, 16 Mar 2023 21:18:59 +0100 Subject: [PATCH] fix(decode): solve int overflow on unix arm32 --- scanner/scanner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scanner/scanner.go b/scanner/scanner.go index b0eac48..18f3fd8 100644 --- a/scanner/scanner.go +++ b/scanner/scanner.go @@ -141,7 +141,7 @@ func (s *Scanner) newLineCount(src []rune) int { } func (s *Scanner) updateIndentState(ctx *Context) { - indentNumBasedIndentState := s.indentState + var indentNumBasedIndentState IndentState if s.prevIndentNum < s.indentNum { s.indentLevel = s.prevIndentLevel + 1 indentNumBasedIndentState = IndentStateUp