hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit ccb3040ad4471de0b6b513289994ccc7dd70b333
parent fe0c270577325dcd08d5e21faa42c5288a205f93
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Thu,  8 Sep 2016 17:17:28 +0300

Fix pagination page counter on 32 bit

Updates #2415

Diffstat:
Mhugolib/site.go | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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