]> granicus.if.org Git - vim/commitdiff
patch 8.2.3577: overflow check fails with 32 ints v8.2.3577
authorBram Moolenaar <Bram@vim.org>
Wed, 3 Nov 2021 13:43:16 +0000 (13:43 +0000)
committerBram Moolenaar <Bram@vim.org>
Wed, 3 Nov 2021 13:43:16 +0000 (13:43 +0000)
Problem:    Overflow check fails with 32 ints.
Solution:   Only test with 64 bit ints.

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

index 82379dc052d701e28cd9d14e0a7bd7d1e39e59a9..1b67c85a12b694e2b8949a645b9403d1cf06fdcb 100644 (file)
@@ -149,6 +149,10 @@ func Test_p_with_count_leaves_mark_at_end()
 endfunc
 
 func Test_very_large_count()
+  if v:sizeofint != 8
+    throw 'Skipped: only works with 64 bit ints'
+  endif
+
   new
   let @" = 'x'
   call assert_fails('norm 44444444444444p', 'E1240:')
index c8ea131ee351666991e94d6e9fcdb56786d3df4a..b1c1193ea3ad76308eb7504f37c2784de7bd4308 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3577,
 /**/
     3576,
 /**/