From f9706e9df0e37d214fb08eda30ba29627e97a607 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 22 Feb 2020 14:27:04 +0100 Subject: patch 8.2.0296: mixing up "long long" and __int64 may cause problems Problem: Mixing up "long long" and __int64 may cause problems. (John Marriott) Solution: Pass varnumber_T to vim_snprintf(). Add v:numbersize. --- src/testdir/test_eval_stuff.vim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/testdir/test_eval_stuff.vim') 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 -- cgit v1.2.1