From 8ec804d825370ccf06fd9a7c6fb5589e3c2c17c2 Mon Sep 17 00:00:00 2001
From: Jakob Unterwurzacher
Date: Sat, 16 Nov 2019 23:21:37 +0100
Subject: 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.
---
 internal/fusefrontend/fs.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'internal/fusefrontend')

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
 	}
 }
 
-- 
cgit v1.2.3