From 0f0044125c2a5dcde2c4605efc39d2e237eed024 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 3 Nov 2021 13:43:16 +0000 Subject: patch 8.2.3577: overflow check fails with 32 ints Problem: Overflow check fails with 32 ints. Solution: Only test with 64 bit ints. --- src/testdir/test_put.vim | 4 ++++ src/version.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/testdir/test_put.vim b/src/testdir/test_put.vim index 82379dc05..1b67c85a1 100644 --- a/src/testdir/test_put.vim +++ b/src/testdir/test_put.vim @@ -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:') diff --git a/src/version.c b/src/version.c index c8ea131ee..b1c1193ea 100644 --- a/src/version.c +++ b/src/version.c @@ -757,6 +757,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 3577, /**/ 3576, /**/ -- cgit v1.2.1