From c677227133f1741a442e328f056e1735ce41b9a9 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Thu, 29 Sep 2022 07:43:54 +0900 Subject: [PATCH] Fix 32-bit constant overflow This prevented compilation on arm7 systems like Raspberry Pi. Fixes #724. --- internal/backend_s3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/backend_s3.go b/internal/backend_s3.go index 3ee2d489..1ee9c5f0 100644 --- a/internal/backend_s3.go +++ b/internal/backend_s3.go @@ -504,7 +504,7 @@ func (s *S3Backend) mpuCopyPart(from string, to string, mpuId string, bytes stri } func sizeToParts(size int64) (int, int64) { - const MAX_S3_MPU_SIZE = 5 * 1024 * 1024 * 1024 * 1024 + const MAX_S3_MPU_SIZE int64 = 5 * 1024 * 1024 * 1024 * 1024 if size > MAX_S3_MPU_SIZE { panic(fmt.Sprintf("object size: %v exceeds maximum S3 MPU size: %v", size, MAX_S3_MPU_SIZE)) }