diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2023-01-23 18:30:36 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2023-01-23 18:30:36 +0900 |
commit | aa7361337d3f78ae1e32283ba395446025323abb (patch) | |
tree | 8e667b43b2a1c9f533fd92060c44e3d622f71961 /src/util | |
parent | 284d77fe2e41ec69fcc7ca7162bcf9b65b1641be (diff) |
Make test case pass on 32-bit platforms
Close #3127
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/util_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) } } |