diff --git a/memfile.go b/memfile.go index 6be5c87..f69d2cd 100644 --- a/memfile.go +++ b/memfile.go @@ -34,16 +34,18 @@ type MemDir interface { } type InMemoryFile struct { - sync.Mutex + // atomic requires 64-bit alignment for struct field access at int64 - name string - data []byte - memDir MemDir - dir bool - closed bool - mode os.FileMode - modtime time.Time readDirCount int64 + + sync.Mutex + name string + data []byte + memDir MemDir + dir bool + closed bool + mode os.FileMode + modtime time.Time } func MemFileCreate(name string) *InMemoryFile {