Skip to content

Commit

Permalink
returns are treated as 32-bit
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorVin committed Nov 14, 2024
1 parent 0383d55 commit 680f15f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/nvme.go
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ func (n *Nvme) createNS(ctx context.Context, logicalName string, size, blocksize
if len(parts) != 3 {
return 0, fmt.Errorf("unable to parse nsid: %w", io.ErrUnexpectedEOF)
}
nsid, err := strconv.ParseUint(string(parts[2]), 10, 64)
nsid, err := strconv.ParseUint(string(parts[2]), 10, 32)
return uint(nsid), err
}

Expand Down

0 comments on commit 680f15f

Please sign in to comment.