]> granicus.if.org Git - vim/commitdiff
patch 8.2.3570: Test_very_large_count fails on 32bit systems v8.2.3570
authorBram Moolenaar <Bram@vim.org>
Mon, 1 Nov 2021 22:58:43 +0000 (22:58 +0000)
committerBram Moolenaar <Bram@vim.org>
Mon, 1 Nov 2021 22:58:43 +0000 (22:58 +0000)
Problem:    Test_very_large_count fails on 32bit systems.
Solution:   Bail out when using 32 bit numbers. (closes #9072)

src/testdir/test_put.vim
src/version.c

index a6bed75358ff0ec2e1ea42a866208d7e51828c5a..921d3b21543d0f4399564a41c88d5f24700143dd 100644 (file)
@@ -152,6 +152,10 @@ func Test_very_large_count()
   " FIXME: should actually check if sizeof(int) == sizeof(long)
   CheckNotMSWindows
 
+  if v:numbersize != 64
+    throw 'Skipped: only works with 64 bit numbers'
+  endif
+
   new
   let @" = 'x'
   call assert_fails('norm 44444444444444p', 'E1240:')
index ea1a790ccc6310c1b597fda531ed1b1dece1a93a..2f19980269227f7ca77858208f2c7e9b58c52560 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3570,
 /**/
     3569,
 /**/