From: Bjørn Erik Pedersen Date: Thu, 8 Sep 2016 14:17:28 +0000 (+0300) Subject: Fix pagination page counter on 32 bit X-Git-Tag: v0.17~98 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ccb3040a;p=brevno-suite%2Fhugo Fix pagination page counter on 32 bit Updates #2415 --- diff --git a/hugolib/site.go b/hugolib/site.go index 32e19a8b..8ffe0fad 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