mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
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:
parent
700af0ab1d
commit
72e3d2c9ba
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user