vim-patch:8.2.4363: MS-Windows: running out of memory for a very long line

Problem:    MS-Windows: running out of memory for a very long line.
Solution:   Use a 32 bit value for MAXCOL also when ints are 64 bits.
8e38555ece

This still fails Vim's Windows CI, so let's see what happens...
This commit is contained in:
Sean Dewar 2022-02-12 21:33:09 +00:00
parent 700af0ab1d
commit 72e3d2c9ba
No known key found for this signature in database
GPG Key ID: 08CC2C83AD41B581

View File

@ -16,7 +16,9 @@ typedef int colnr_T;
/// Maximal (invalid) line number
enum { MAXLNUM = 0x7fffffff, };
/// Maximal column number
enum { MAXCOL = INT_MAX, };
/// MAXCOL used to be INT_MAX, but with 64 bit ints that results in running
/// out of memory when trying to allocate a very long line.
enum { MAXCOL = 0x7fffffff, };
// Minimum line number
enum { MINLNUM = 1, };
// minimum column number