From cab2f7df0e3aef9e7fc6f8fc336c049efa2f278b 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 6369cfee..4b8e665f 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