Skip to content

Commit

Permalink
atomic requires struct field to be 64-bit aligned
Browse files Browse the repository at this point in the history
  • Loading branch information
tpng committed Nov 26, 2015
1 parent 0ad3406 commit 9132fc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions memfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ type MemDir interface {
}

type InMemoryFile struct {
sync.Mutex
at int64
readDirCount int64
sync.Mutex
name string
data []byte
memDir MemDir
dir bool
closed bool
mode os.FileMode
modtime time.Time
readDirCount int64
}

func MemFileCreate(name string) *InMemoryFile {
Expand Down

0 comments on commit 9132fc2

Please sign in to comment.