Merge pull request #28 from pallas/fix-overflow

authority/provisioners: fix overflow on 32-bit systems
This commit is contained in:
Mariano Cano 2019-01-28 08:32:35 -08:00 committed by GitHub
commit 025e36bf10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,7 @@ type uidProvisioner struct {
}
func newSortedProvisioners(provisioners []*Provisioner) (provisionerSlice, error) {
if len(provisioners) > math.MaxUint32 {
if len(provisioners) > math.MaxInt32 {
return nil, errors.New("too many provisioners")
}