diff --git a/sys/windows/consoletty.c b/sys/windows/consoletty.c index e947561f1..10bc06c37 100644 --- a/sys/windows/consoletty.c +++ b/sys/windows/consoletty.c @@ -774,7 +774,7 @@ emit_start_256color(int u256coloridx) Snprintf(tcolorbuf, sizeof tcolorbuf, tcfmtstr256, (long) u256coloridx); WriteConsoleA(console.hConOut, (LPCSTR) tcolorbuf, - (long) strlen(tcolorbuf), &unused, NULL); + (int) strlen(tcolorbuf), &unused, NULL); } void