~mdw
/
tig
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix (another) integer type mismatch on 64-bit systems
[tig]
/
tig.c
diff --git
a/tig.c
b/tig.c
index
6adfb33
..
31b41f7
100644
(file)
--- a/
tig.c
+++ b/
tig.c
@@
-1153,7
+1153,7
@@
read_option(char *opt, size_t optlen, char *value, size_t valuelen)
if (status == ERR) {
fprintf(stderr, "Error on line %d, near '%.*s': %s\n",
if (status == ERR) {
fprintf(stderr, "Error on line %d, near '%.*s': %s\n",
- config_lineno, optlen, opt, config_msg);
+ config_lineno,
(int)
optlen, opt, config_msg);
config_errors = TRUE;
}
config_errors = TRUE;
}
@@
-1394,7
+1394,7
@@
update_view_title(struct view *view)
if (minsize < view->width)
refsize = view->width - minsize + 7;
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) {
}
if (statelen && bufpos < view->width) {