From aa7361337d3f78ae1e32283ba395446025323abb Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 23 Jan 2023 18:30:36 +0900 Subject: [PATCH] Make test case pass on 32-bit platforms Close #3127 --- src/util/util_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/util_test.go b/src/util/util_test.go index ca12aa75..534eeb71 100644 --- a/src/util/util_test.go +++ b/src/util/util_test.go @@ -115,7 +115,7 @@ func TestAsUint16(t *testing.T) { if AsUint16(math.MinInt16) != 0 { t.Error("Expected", 0) } - if AsUint16(math.MaxUint32) != math.MaxUint16 { + if AsUint16(math.MaxUint16+1) != math.MaxUint16 { t.Error("Expected", math.MaxUint16) } }