From b257340ad2a6ef1f2eed4a2e075e6decba772013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Wed, 15 Jul 2015 22:57:12 +0200 Subject: [PATCH] Fix compiler warning --- degesch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/degesch.c b/degesch.c index 6bceb2e..daed7f7 100644 --- a/degesch.c +++ b/degesch.c @@ -2963,8 +2963,8 @@ buffer_print_backlog (struct app_context *ctx, struct buffer *buffer) print_status ("%s", buffer->name); // That is, minus the buffer switch line and the readline prompt - int display_limit = - MAX (MAX (10, buffer->unseen_messages_count), g_terminal.lines - 2); + int display_limit = MAX (MAX (10, + (int) buffer->unseen_messages_count), g_terminal.lines - 2); struct buffer_line *line = buffer->lines_tail; int to_display = line != NULL;