We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d78e52d commit 1605237Copy full SHA for 1605237
internal/handler/yaml_handler/diagnostics.go
@@ -46,7 +46,7 @@ func (h *YamlHandler) GetDiagnostics(uri uri.URI) []protocol.PublishDiagnosticsP
46
line--
47
var lineUint uint32 = 0
48
// Check bounds for uint32
49
- if line < 0 || line+1 > int(math.MaxUint32) {
+ if line < 0 || int64(line)+1 > int64(math.MaxUint32) {
50
logger.Debug("YamlHandler: Line number out of bounds: %d", line)
51
} else {
52
lineUint = uint32(line)
0 commit comments