summaryrefslogtreecommitdiff
path: root/src/testdir/test_eval_stuff.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-02-22 14:27:04 +0100
committerBram Moolenaar <Bram@vim.org>2020-02-22 14:27:04 +0100
commitf9706e9df0e37d214fb08eda30ba29627e97a607 (patch)
tree9d90ad2977ed759664a2c2d0776901f34a8e0350 /src/testdir/test_eval_stuff.vim
parentc036e87bd7001238ab7cc5d9e30e59bbf989a5fd (diff)
downloadvim-git-f9706e9df0e37d214fb08eda30ba29627e97a607.tar.gz
patch 8.2.0296: mixing up "long long" and __int64 may cause problemsv8.2.0296
Problem: Mixing up "long long" and __int64 may cause problems. (John Marriott) Solution: Pass varnumber_T to vim_snprintf(). Add v:numbersize.
Diffstat (limited to 'src/testdir/test_eval_stuff.vim')
-rw-r--r--src/testdir/test_eval_stuff.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testdir/test_eval_stuff.vim b/src/testdir/test_eval_stuff.vim
index 53627557a..b691192b4 100644
--- a/src/testdir/test_eval_stuff.vim
+++ b/src/testdir/test_eval_stuff.vim
@@ -228,3 +228,9 @@ func Test_excute_null()
call assert_fails('execute test_null_channel()', 'E908:')
endif
endfunc
+
+func Test_numbersize()
+ " This will fail on systems without 64 bit int support or when not configured
+ " correctly.
+ call assert_equal(64, v:numbersize)
+endfunc