tests: OSX: cast st.Blksize to int64
On Linux, Blksize is already int64. But on OSX it is int32 and that caused a compile failure. https://github.com/rfjakob/gocryptfs/issues/15
This commit is contained in:
parent
603e144f5e
commit
9d17fdb206
@ -298,5 +298,6 @@ func Du(t *testing.T, fd int) (nBytes int64, nBlocks int64) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
return st.Blocks * st.Blksize, st.Blocks
|
// On OSX, Blksize is int32, need to cast to int64.
|
||||||
|
return st.Blocks * int64(st.Blksize), st.Blocks
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user