mirror of https://github.com/perkeep/perkeep.git
Fix build on 32-bit platforms (e.g. Android)
Change-Id: Id5feff31ed103aeaaebf9b3e09a5e8a03b572a2d
This commit is contained in:
parent
c5c6fe1adc
commit
283aa2a03a
|
@ -113,7 +113,7 @@ func (c *Client) FetchVia(b blob.Ref, v []blob.Ref) (body io.ReadCloser, size ui
|
|||
var closer io.Closer = resp.Body
|
||||
if resp.ContentLength > 0 {
|
||||
if resp.ContentLength > math.MaxUint32 {
|
||||
return nil, 0, fmt.Errorf("Blob %s over %d bytes", b, math.MaxUint32)
|
||||
return nil, 0, fmt.Errorf("Blob %s over %d bytes", b, uint32(math.MaxUint32))
|
||||
}
|
||||
size = uint32(resp.ContentLength)
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue