aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-09-29 14:58:48 +0200
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2023-10-03 22:02:55 +0200
commite72b546354cd90bf0cd8ee6dd045538d713009ad (patch)
tree680a28f2e9ca4ab5a3221afbffff4d64cfdef842 /src/nvim/ex_getln.c
parent70ec8d60e0dc71c5ca06fdd83698c82b16ea474f (diff)
downloadrneovim-e72b546354cd90bf0cd8ee6dd045538d713009ad.tar.gz
rneovim-e72b546354cd90bf0cd8ee6dd045538d713009ad.tar.bz2
rneovim-e72b546354cd90bf0cd8ee6dd045538d713009ad.zip
refactor: the long goodbye
long is 32 bits on windows, while it is 64 bits on other architectures. This makes the type suboptimal for a codebase meant to be cross-platform. Replace it with more appropriate integer types.
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r--src/nvim/ex_getln.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index d1871c11e2..2a1dffacb7 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -142,11 +142,11 @@ typedef struct cmdpreview_undo_info {
u_header_T *save_b_u_curhead;
int save_b_u_numhead;
bool save_b_u_synced;
- long save_b_u_seq_last;
- long save_b_u_save_nr_last;
- long save_b_u_seq_cur;
+ int save_b_u_seq_last;
+ int save_b_u_save_nr_last;
+ int save_b_u_seq_cur;
time_t save_b_u_time_cur;
- long save_b_u_save_nr_cur;
+ int save_b_u_save_nr_cur;
char *save_b_u_line_ptr;
linenr_T save_b_u_line_lnum;
colnr_T save_b_u_line_colnr;
@@ -207,7 +207,7 @@ static int cedit_key = -1; ///< key value of 'cedit' option
#endif
static handle_T cmdpreview_bufnr = 0;
-static long cmdpreview_ns = 0;
+static int cmdpreview_ns = 0;
static void save_viewstate(win_T *wp, viewstate_T *vs)
FUNC_ATTR_NONNULL_ALL