mirror of
https://github.com/tmux/tmux.git
synced 2025-01-07 16:28:48 +00:00
Fix a couple of argument types.
This commit is contained in:
parent
481e48d119
commit
67d2335130
@ -81,8 +81,8 @@ cmd_show_messages_jobs(struct cmdq_item *item, int blank)
|
|||||||
cmdq_print(item, "%s", "");
|
cmdq_print(item, "%s", "");
|
||||||
blank = 0;
|
blank = 0;
|
||||||
}
|
}
|
||||||
cmdq_print(item, "Job %u: %s [fd=%d, pid=%d, status=%d]",
|
cmdq_print(item, "Job %u: %s [fd=%d, pid=%ld, status=%d]",
|
||||||
n, job->cmd, job->fd, job->pid, job->status);
|
n, job->cmd, job->fd, (long)job->pid, job->status);
|
||||||
n++;
|
n++;
|
||||||
}
|
}
|
||||||
return (n != 0);
|
return (n != 0);
|
||||||
|
2
utf8.c
2
utf8.c
@ -112,7 +112,7 @@ utf8_width(wchar_t wc)
|
|||||||
|
|
||||||
width = wcwidth(wc);
|
width = wcwidth(wc);
|
||||||
if (width < 0 || width > 0xff) {
|
if (width < 0 || width > 0xff) {
|
||||||
log_debug("Unicode %04x, wcwidth() %d", wc, width);
|
log_debug("Unicode %04lx, wcwidth() %d", (long)wc, width);
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
return (width);
|
return (width);
|
||||||
|
Loading…
Reference in New Issue
Block a user