From 9fd97e71d0330d6b6509f28686cf53825bc80941 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 5 Nov 2025 20:13:19 +0900 Subject: treewide: fit test untyped int literals in 32-bit This enables hakurei test suite to run on 32-bit targets. Signed-off-by: Ophestra --- container/params_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'container/params_test.go') diff --git a/container/params_test.go b/container/params_test.go index f74abf1c..11d08850 100644 --- a/container/params_test.go +++ b/container/params_test.go @@ -56,7 +56,7 @@ func TestSetupReceive(t *testing.T) { t.Run("setup receive", func(t *testing.T) { check := func(t *testing.T, useNilFdp bool) { const key = "TEST_SETUP_RECEIVE" - payload := []int{syscall.MS_MGC_VAL, syscall.MS_MGC_MSK, syscall.MS_ASYNC, syscall.MS_ACTIVE} + payload := []uint64{syscall.MS_MGC_VAL, syscall.MS_MGC_MSK, syscall.MS_ASYNC, syscall.MS_ACTIVE} encoderDone := make(chan error, 1) extraFiles := make([]*os.File, 0, 1) @@ -86,7 +86,7 @@ func TestSetupReceive(t *testing.T) { } var ( - gotPayload []int + gotPayload []uint64 fdp *uintptr ) if !useNilFdp { -- cgit v1.3.1