From 8e932480f61d6101bf8bea1abc07ed93826221fd Mon Sep 17 00:00:00 2001 From: dundargoc Date: Fri, 29 Sep 2023 14:58:48 +0200 Subject: 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. --- src/nvim/textformat.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/nvim/textformat.c') diff --git a/src/nvim/textformat.c b/src/nvim/textformat.c index 13e51b9a9e..f2b30fd14b 100644 --- a/src/nvim/textformat.c +++ b/src/nvim/textformat.c @@ -1108,15 +1108,13 @@ void format_lines(linenr_T line_count, bool avoid_fex) } if (next_leader_len > 0) { (void)del_bytes(next_leader_len, false, false); - mark_col_adjust(curwin->w_cursor.lnum, (colnr_T)0, 0L, - (long)-next_leader_len, 0); + mark_col_adjust(curwin->w_cursor.lnum, 0, 0, -next_leader_len, 0); } else if (second_indent > 0) { // the "leader" for FO_Q_SECOND int indent = (int)getwhitecols_curline(); if (indent > 0) { (void)del_bytes(indent, false, false); - mark_col_adjust(curwin->w_cursor.lnum, - (colnr_T)0, 0L, (long)-indent, 0); + mark_col_adjust(curwin->w_cursor.lnum, 0, 0, -indent, 0); } } curwin->w_cursor.lnum--; -- cgit