mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 08:56:29 +00:00
pos: define MAXCOL to INT_MAX
Partial port of patch v8.1.0953. Remove useless casts on MAXCOL.
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
#ifndef NVIM_POS_H
|
||||
#define NVIM_POS_H
|
||||
|
||||
// for INT_MAX, LONG_MAX et al.
|
||||
#include <limits.h>
|
||||
|
||||
typedef long linenr_T; // line number type
|
||||
/// Format used to print values which have linenr_T type
|
||||
#define PRIdLINENR "ld"
|
||||
@@ -12,8 +15,8 @@ typedef int colnr_T;
|
||||
|
||||
/// Maximal (invalid) line number
|
||||
enum { MAXLNUM = 0x7fffffff };
|
||||
/// Maximal column number, 31 bits
|
||||
enum { MAXCOL = 0x7fffffff };
|
||||
/// Maximal column number
|
||||
enum { MAXCOL = INT_MAX };
|
||||
// Minimum line number
|
||||
enum { MINLNUM = 1 };
|
||||
// minimum column number
|
||||
|
Reference in New Issue
Block a user