diff options
author | Jakob Unterwurzacher | 2019-11-16 23:21:37 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2019-11-16 23:21:37 +0100 |
commit | 8ec804d825370ccf06fd9a7c6fb5589e3c2c17c2 (patch) | |
tree | d6f2ce2f6d87cfd938bca94449b6cd119ff5c96c /internal/fusefrontend/fs.go | |
parent | bb6155a51ff7a521d948ec58723d211bfaf8a731 (diff) |
fs: add uint64 cast to fix Darwin build
Error from Travis CI was:
+GOOS=darwin
+GOARCH=amd64
+go build -tags without_openssl
# github.com/rfjakob/gocryptfs/internal/fusefrontend
internal/fusefrontend/fs.go:88:45: cannot use st.Dev (type int32) as type uint64 in argument to openfiletable.NewInumMap
Add uint64 to fix it.
Diffstat (limited to 'internal/fusefrontend/fs.go')
-rw-r--r-- | internal/fusefrontend/fs.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/fusefrontend/fs.go b/internal/fusefrontend/fs.go index b922805..d03fc77 100644 --- a/internal/fusefrontend/fs.go +++ b/internal/fusefrontend/fs.go @@ -85,7 +85,7 @@ func NewFS(args Args, c *contentenc.ContentEnc, n nametransform.NameTransformer) args: args, nameTransform: n, contentEnc: c, - inumMap: openfiletable.NewInumMap(st.Dev), + inumMap: openfiletable.NewInumMap(uint64(st.Dev)), // cast is needed for Darwin } } |