summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2023-01-23 18:30:36 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2023-01-23 18:30:36 +0900
commitaa7361337d3f78ae1e32283ba395446025323abb (patch)
tree8e667b43b2a1c9f533fd92060c44e3d622f71961 /src/util
parent284d77fe2e41ec69fcc7ca7162bcf9b65b1641be (diff)
Make test case pass on 32-bit platforms
Close #3127
Diffstat (limited to 'src/util')
-rw-r--r--src/util/util_test.go2
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)
}
}