Skip to content

Commit 7574d4f

Browse files
Potential fix for pull request finding 'CodeQL / Incorrect conversion between integer types'
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 36d40c1 commit 7574d4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • cmd/zoekt-sourcegraph-indexserver

cmd/zoekt-sourcegraph-indexserver/debug.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func debugIndex() *ffcli.Command {
2929
if err != nil {
3030
return err
3131
}
32-
id, err := strconv.Atoi(args[0])
32+
id, err := strconv.ParseUint(args[0], 10, 32)
3333
if err != nil {
3434
return err
3535
}

0 commit comments

Comments
 (0)