From ccb3040ad4471de0b6b513289994ccc7dd70b333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 8 Sep 2016 17:17:28 +0300 Subject: [PATCH] Fix pagination page counter on 32 bit Updates #2415 --- hugolib/site.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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