Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-09-08 17:17:28 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-09-08 17:18:11 +0300
commitccb3040ad4471de0b6b513289994ccc7dd70b333 (patch)
tree99b9bc4bea5dfcb43e9ef6fbbaf7e4ce1995c6fe /hugolib
parentfe0c270577325dcd08d5e21faa42c5288a205f93 (diff)
Fix pagination page counter on 32 bit
Updates #2415
Diffstat (limited to 'hugolib')
-rw-r--r--hugolib/site.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/hugolib/site.go b/hugolib/site.go
index 32e19a8b1..8ffe0fad4 100644
--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -154,6 +154,8 @@ type targetList struct {
}
type SiteInfo struct {
+ // atomic requires 64-bit alignment for struct field access
+ paginationPageCount uint64
BaseURL template.URL
Taxonomies TaxonomyList
Authors AuthorList
@@ -178,7 +180,6 @@ type SiteInfo struct {
BuildDrafts bool
canonifyURLs bool
preserveTaxonomyNames bool
- paginationPageCount uint64
Data *map[string]interface{}
owner *HugoSites