Skip to content

Commit

Permalink
readd int64 cast + nolint directive.
Browse files Browse the repository at this point in the history
  • Loading branch information
raulk committed Aug 17, 2020
1 parent 862bafc commit 1f01626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extern/sector-storage/fsutil/filesize_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 1f01626

Please sign in to comment.