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/message.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/message.c')
-rw-r--r-- | src/nvim/message.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c index 5777463e25..af19d0ab87 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -1346,7 +1346,7 @@ bool messaging(void) return !(p_lz && char_avail() && !KeyTyped) && (p_ch > 0 || ui_has(kUIMessages)); } -void msgmore(long n) +void msgmore(int n) { long pn; @@ -1480,11 +1480,11 @@ void msg_putchar_attr(int c, int attr) msg_puts_attr(buf, attr); } -void msg_outnum(long n) +void msg_outnum(int n) { char buf[20]; - snprintf(buf, sizeof(buf), "%ld", n); + snprintf(buf, sizeof(buf), "%d", n); msg_puts(buf); } |