Skip to content

Commit

Permalink
libmem: fix slice indexing cut-and-paste thinko.
Browse files Browse the repository at this point in the history
Signed-off-by: Krisztian Litkey <[email protected]>
  • Loading branch information
klihub committed Oct 14, 2024
1 parent 16a0685 commit 2b0db24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/resmgr/lib/memory/nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func ParseNodeMask(str string) (NodeMask, error) {
m |= (1 << id)
}
case 1:
id, err := strconv.ParseInt(minmax[1], 10, 32)
id, err := strconv.ParseInt(minmax[0], 10, 32)
if err != nil {
return 0, fmt.Errorf("%w: failed to parse node mask %q: %w",
ErrInvalidNodeMask, str, err)
Expand Down

0 comments on commit 2b0db24

Please sign in to comment.