From d1858debc412dfdeac02a081cb6379d87b577ac3 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Mon, 4 Jun 2007 08:45:21 +0200 Subject: [PATCH] Fix (another) integer type mismatch on 64-bit systems Similar to previous commit, use int type as the first parameter to printf field width specifier (%.*s). --- tig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tig.c b/tig.c index b09d91b..31b41f7 100644 --- a/tig.c +++ b/tig.c @@ -1394,7 +1394,7 @@ update_view_title(struct view *view) if (minsize < view->width) refsize = view->width - minsize + 7; - string_format_from(buf, &bufpos, " %.*s", refsize, view->ref); + string_format_from(buf, &bufpos, " %.*s", (int) refsize, view->ref); } if (statelen && bufpos < view->width) { -- 2.30.2