chiark
/
gitweb
/
~mdw
/
tig
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
07c3971
)
Fix (another) integer type mismatch on 64-bit systems
author
Jonas Fonseca
<fonseca@diku.dk>
Mon, 4 Jun 2007 06:45:21 +0000
(08:45 +0200)
committer
Jonas Fonseca
<fonseca@diku.dk>
Mon, 4 Jun 2007 06:45:21 +0000
(08:45 +0200)
Similar to previous commit, use int type as the first parameter to
printf field width specifier (%.*s).
tig.c
patch
|
blob
|
blame
|
history
diff --git
a/tig.c
b/tig.c
index b09d91bf98189b3ea947eaba3b254bfea3dbc10c..31b41f7dd085175f5ec3f9ed4ba5239f67937f81 100644
(file)
--- 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) {