Skip to content

Commit 59cdde0

Browse files
authored
Merge pull request #712 from dangowrt/fix-hugetlb-32bit
Fix build of hugetlb tests on 32-bit platforms
2 parents a7974a4 + 6502e57 commit 59cdde0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

validation/linux_cgroups_hugetlb/linux_cgroups_hugetlb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func testHugetlbCgroups() error {
2424
// When setting the limit just for checking if writing works, the amount of memory
2525
// requested does not matter, as all insigned integers will be accepted.
2626
// Use 2GiB as an example
27-
const limit = 2 * (1 << 30)
27+
var limit uint64 = 2 * (1 << 30)
2828

2929
for _, pageSize := range pageSizes {
3030
g, err := util.GetDefaultGenerator()

validation/linux_cgroups_relative_hugetlb/linux_cgroups_relative_hugetlb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func main() {
2121
// When setting the limit just for checking if writing works, the amount of memory
2222
// requested does not matter, as all insigned integers will be accepted.
2323
// Use 2GiB as an example
24-
const limit = 2 * (1 << 30)
24+
var limit uint64 = 2 * (1 << 30)
2525

2626
for _, pageSize := range pageSizes {
2727
g, err := util.GetDefaultGenerator()

0 commit comments

Comments
 (0)