aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'window.c')
-rw-r--r--window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/window.c b/window.c
index 48044c5..a4d80f4 100644
--- a/window.c
+++ b/window.c
@@ -108,7 +108,7 @@ void window_selection_clear(Win *win) {
static int window_numbers_width(Win *win) {
if (!win->winnum)
return 0;
- return snprintf(NULL, 0, "%d", win->topline->lineno + win->height - 1) + 1;
+ return snprintf(NULL, 0, "%zd", win->topline->lineno + win->height - 1) + 1;
}
static void window_numbers_draw(Win *win) {