mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user