forked from TrueCloudLab/certificates
Merge pull request #28 from pallas/fix-overflow
authority/provisioners: fix overflow on 32-bit systems
This commit is contained in:
commit
025e36bf10
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue