From: Jonas Fonseca Date: Mon, 4 Jun 2007 06:45:21 +0000 (+0200) Subject: Fix (another) integer type mismatch on 64-bit systems X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d1858debc412dfdeac02a081cb6379d87b577ac3;p=tig.git 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). --- 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) {