Skip to content

Commit 9745014

Browse files
authored
test: fix overflow (#2342)
1 parent 3f8b548 commit 9745014

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iterator/iterator_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ type service struct {
3939
func (s *service) List(pageSize int, pageToken string) ([]int, string, error) {
4040
max := s.max
4141
if max == 0 {
42-
max = math.MaxInt64
42+
max = math.MaxInt
4343
}
4444
// Never give back any more than s.max.
4545
if pageSize <= 0 || pageSize > max {

0 commit comments

Comments
 (0)