diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-11-05 20:13:19 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-11-05 20:13:19 +0900 |
| commit | 9fd97e71d0330d6b6509f28686cf53825bc80941 (patch) | |
| tree | 35774cbde4c1abd9967a1de98341a732ff3b464f /hst | |
| parent | fba201c9953a490da914b09e09eaaa697a4b36e1 (diff) | |
treewide: fit test untyped int literals in 32-bit
This enables hakurei test suite to run on 32-bit targets.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst')
| -rw-r--r-- | hst/enablement_test.go | 4 | ||||
| -rw-r--r-- | hst/fs_test.go | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/hst/enablement_test.go b/hst/enablement_test.go index ac8810f3..75d8d946 100644 --- a/hst/enablement_test.go +++ b/hst/enablement_test.go @@ -80,7 +80,7 @@ func TestEnablements(t *testing.T) { if got, err := json.Marshal(struct { Value *hst.Enablements `json:"value"` - Magic int `json:"magic"` + Magic uint64 `json:"magic"` }{tc.e, syscall.MS_MGC_VAL}); err != nil { t.Fatalf("Marshal: error = %v", err) } else if string(got) != tc.sData { @@ -108,7 +108,7 @@ func TestEnablements(t *testing.T) { { got := *(new(struct { Value *hst.Enablements `json:"value"` - Magic int `json:"magic"` + Magic uint64 `json:"magic"` })) if err := json.Unmarshal([]byte(tc.sData), &got); err != nil { t.Fatalf("Unmarshal: error = %v", err) diff --git a/hst/fs_test.go b/hst/fs_test.go index 10e075be..4b079096 100644 --- a/hst/fs_test.go +++ b/hst/fs_test.go @@ -241,7 +241,7 @@ func (s stubFS) String() string { return "<invalid " + s.typeName + ">" type sCheck struct { FS hst.FilesystemConfigJSON `json:"fs"` - Magic int `json:"magic"` + Magic uint64 `json:"magic"` } type fsTestCase struct { |
