From 7ff2b0121dff4696b0811d396cd87d1d4f774e3e Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 19 May 2020 07:55:23 -0700 Subject: [PATCH] specify constant data type to uint64 instead of default int fix https://github.com/chrislusf/seaweedfs/issues/1324 --- weed/storage/types/offset_5bytes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/storage/types/offset_5bytes.go b/weed/storage/types/offset_5bytes.go index f57e4f6d4..1db22d524 100644 --- a/weed/storage/types/offset_5bytes.go +++ b/weed/storage/types/offset_5bytes.go @@ -12,7 +12,7 @@ type OffsetHigher struct { const ( OffsetSize = 4 + 1 - MaxPossibleVolumeSize = 4 * 1024 * 1024 * 1024 * 8 * 256 /* 256 is from the extra byte */ // 8TB + MaxPossibleVolumeSize uint64 = 4 * 1024 * 1024 * 1024 * 8 * 256 /* 256 is from the extra byte */ // 8TB ) func OffsetToBytes(bytes []byte, offset Offset) {