From 65c8752436cd7bf35a218023350d3f52d34b0dc9 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 90228ed3..78b30f86 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