Skip to content

Commit

Permalink
test: fix overflow (#2342)
Browse files Browse the repository at this point in the history
  • Loading branch information
hickford committed Jan 9, 2024
1 parent 3f8b548 commit 9745014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iterator/iterator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type service struct {
func (s *service) List(pageSize int, pageToken string) ([]int, string, error) {
max := s.max
if max == 0 {
max = math.MaxInt64
max = math.MaxInt
}
// Never give back any more than s.max.
if pageSize <= 0 || pageSize > max {
Expand Down

0 comments on commit 9745014

Please sign in to comment.