1
0
forked from aniani/vim

patch 8.2.3577: overflow check fails with 32 ints

Problem:    Overflow check fails with 32 ints.
Solution:   Only test with 64 bit ints.
This commit is contained in:
Bram Moolenaar
2021-11-03 13:43:16 +00:00
parent a63780b977
commit 0f0044125c
2 changed files with 6 additions and 0 deletions

View 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:')

View File

@@ -757,6 +757,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3577,
/**/
3576,
/**/