Fix paginator counter on x86-32
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 9 Sep 2016 12:31:49 +0000 (14:31 +0200)
committerGitHub <noreply@github.com>
Fri, 9 Sep 2016 12:31:49 +0000 (14:31 +0200)
commit4df86a703a56b3c6a75bbba20d581e7422858e09
treec67aa2763e056f0a43c3e144f3abae7cbb13826a
parenteaf2f9bce5537a1dcbdb32dc62b9827e5a99585b
Fix paginator counter on x86-32

Atomic operations with 64 bit values must be aligned for 64-bit on x86-32.

According to the spec:

"The first word in a global variable or in an allocated struct or slice can be relied upon to be 64-bit aligned."

The above wasn't enough for the `paginationPageCount` on `SiteInfo`, maybe due to how `SiteInfo` is embedded.

This commit adds a 4 byte padding before the `uint64` that creates the correct alignment.

Fixes #2415
hugolib/site.go