Skip to content

Commit 9132fc2

Browse files
committed
atomic requires struct field to be 64-bit aligned
fix gohugoio/hugo#1621
1 parent 0ad3406 commit 9132fc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎memfile.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ type MemDir interface {
3434
}
3535

3636
type InMemoryFile struct {
37-
sync.Mutex
3837
at int64
38+
readDirCount int64
39+
sync.Mutex
3940
name string
4041
data []byte
4142
memDir MemDir
4243
dir bool
4344
closed bool
4445
mode os.FileMode
4546
modtime time.Time
46-
readDirCount int64
4747
}
4848

4949
func MemFileCreate(name string) *InMemoryFile {

0 commit comments

Comments
 (0)