Skip to content

Commit 1605237

Browse files
authored
fix: use int64 because of arm7 (#140)
1 parent d78e52d commit 1605237

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/handler/yaml_handler/diagnostics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func (h *YamlHandler) GetDiagnostics(uri uri.URI) []protocol.PublishDiagnosticsP
4646
line--
4747
var lineUint uint32 = 0
4848
// Check bounds for uint32
49-
if line < 0 || line+1 > int(math.MaxUint32) {
49+
if line < 0 || int64(line)+1 > int64(math.MaxUint32) {
5050
logger.Debug("YamlHandler: Line number out of bounds: %d", line)
5151
} else {
5252
lineUint = uint32(line)

0 commit comments

Comments
 (0)