Fix pagination page counter on 32 bit

Updates #2415
This commit is contained in:
Bjørn Erik Pedersen 2016-09-08 17:17:28 +03:00
parent fe0c270577
commit ccb3040ad4

View file

@ -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