shithub: hugo

Download patch

ref: ccb3040ad4471de0b6b513289994ccc7dd70b333
parent: fe0c270577325dcd08d5e21faa42c5288a205f93
author: Bjørn Erik Pedersen <[email protected]>
date: Thu Sep 8 13:17:28 EDT 2016

Fix pagination page counter on 32 bit

Updates #2415

--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -154,6 +154,8 @@
 }
 
 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 @@
 	BuildDrafts           bool
 	canonifyURLs          bool
 	preserveTaxonomyNames bool
-	paginationPageCount   uint64
 	Data                  *map[string]interface{}
 
 	owner                          *HugoSites