summaryrefslogtreecommitdiff
path: root/src/testdir
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-01-22 18:34:57 +0100
committerBram Moolenaar <Bram@vim.org>2017-01-22 18:34:57 +0100
commit7a40ea2138102545848ea86a361f1b8dec7552b5 (patch)
tree28c03360f9bb2de0d7454f50ffccc1f33c75fe54 /src/testdir
parent2b2207ba69c6b009e466a36eef0644ca723e16d3 (diff)
downloadvim-7a40ea2138102545848ea86a361f1b8dec7552b5.zip
patch 8.0.0219: ubsan reports errors for overflow
Problem: Ubsan reports errors for integer overflow. Solution: Define macros for minimum and maximum values. Select an expression based on the value. (Mike Williams)
Diffstat (limited to 'src/testdir')
-rw-r--r--src/testdir/test_viml.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testdir/test_viml.vim b/src/testdir/test_viml.vim
index cc2303b64..c4dd03644 100644
--- a/src/testdir/test_viml.vim
+++ b/src/testdir/test_viml.vim
@@ -1226,7 +1226,7 @@ func Test_num64()
call assert_equal( 9223372036854775807, 1 / 0)
call assert_equal(-9223372036854775807, -1 / 0)
- call assert_equal(-9223372036854775808, 0 / 0)
+ call assert_equal(-9223372036854775807 - 1, 0 / 0)
call assert_equal( 0x7FFFffffFFFFffff, float2nr( 1.0e150))
call assert_equal(-0x7FFFffffFFFFffff, float2nr(-1.0e150))