From 1f016262cd2a7f8bb7c98c44c92a8e18d1f884ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Kripalani?= Date: Mon, 17 Aug 2020 17:21:33 +0100 Subject: [PATCH] readd int64 cast + nolint directive. --- extern/sector-storage/fsutil/filesize_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extern/sector-storage/fsutil/filesize_unix.go b/extern/sector-storage/fsutil/filesize_unix.go index 23732013b..500e54386 100644 --- a/extern/sector-storage/fsutil/filesize_unix.go +++ b/extern/sector-storage/fsutil/filesize_unix.go @@ -24,6 +24,6 @@ func FileSize(path string) (SizeInfo, error) { // NOTE: stat.Blocks is in 512B blocks, NOT in stat.Blksize // See https://www.gnu.org/software/libc/manual/html_node/Attribute-Meanings.html return SizeInfo{ - stat.Blocks * 512, // NOTE: int64 cast is needed on osx + int64(stat.Blocks) * 512, // nolint NOTE: int64 cast is needed on osx }, nil }