diff options
author | dundargoc <gocdundar@gmail.com> | 2023-09-29 14:58:48 +0200 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-10-03 22:02:55 +0200 |
commit | e72b546354cd90bf0cd8ee6dd045538d713009ad (patch) | |
tree | 680a28f2e9ca4ab5a3221afbffff4d64cfdef842 /src/nvim/diff.c | |
parent | 70ec8d60e0dc71c5ca06fdd83698c82b16ea474f (diff) | |
download | rneovim-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/diff.c')
-rw-r--r-- | src/nvim/diff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/diff.c b/src/nvim/diff.c index cb76cf17fc..8479675dfa 100644 --- a/src/nvim/diff.c +++ b/src/nvim/diff.c @@ -3135,7 +3135,7 @@ static void diffgetput(const int addr_count, const int idx_cur, const int idx_fr if (added != 0) { // Adjust marks. This will change the following entries! - mark_adjust(lnum, lnum + count - 1, (long)MAXLNUM, added, kExtmarkNOOP); + mark_adjust(lnum, lnum + count - 1, MAXLNUM, added, kExtmarkNOOP); if (curwin->w_cursor.lnum >= lnum) { // Adjust the cursor position if it's in/after the changed // lines. @@ -3146,7 +3146,7 @@ static void diffgetput(const int addr_count, const int idx_cur, const int idx_fr } } } - extmark_adjust(curbuf, lnum, lnum + count - 1, (long)MAXLNUM, added, kExtmarkUndo); + extmark_adjust(curbuf, lnum, lnum + count - 1, MAXLNUM, added, kExtmarkUndo); changed_lines(curbuf, lnum, 0, lnum + count, added, true); if (did_free) { |