Fix build on 32-bit platforms (e.g. Android)

Change-Id: Id5feff31ed103aeaaebf9b3e09a5e8a03b572a2d
This commit is contained in:
Brad Fitzpatrick 2014-02-08 16:43:21 -08:00
parent c5c6fe1adc
commit 283aa2a03a
1 changed files with 1 additions and 1 deletions

View File

@ -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 {