Skip to content

Commit 86b9bd6

Browse files
authored
Merge pull request #320 from c0va23/fix/build-on-32bit
Fix build on 32bit
2 parents 22c659d + 786aeec commit 86b9bd6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/hostpath/controllerserver.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,7 @@ func (hp *hostPath) ListSnapshots(ctx context.Context, req *csi.ListSnapshotsReq
653653
ulenSnapshots = int32(len(snapshots))
654654
maxEntries = req.MaxEntries
655655
startingToken int32
656+
maxToken = uint32(math.MaxUint32)
656657
)
657658

658659
if v := req.StartingToken; v != "" {
@@ -661,7 +662,7 @@ func (hp *hostPath) ListSnapshots(ctx context.Context, req *csi.ListSnapshotsReq
661662
return nil, status.Errorf(
662663
codes.Aborted,
663664
"startingToken=%d !< int32=%d",
664-
startingToken, math.MaxUint32)
665+
startingToken, maxToken)
665666
}
666667
startingToken = int32(i)
667668
}

0 commit comments

Comments
 (0)