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:
dundargoc
2023-09-29 14:58:48 +02:00
committed by dundargoc
parent 70ec8d60e0
commit e72b546354
33 changed files with 247 additions and 249 deletions

View File

@@ -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);
}