diff options
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Modules/datetime.c | 2 | ||||
-rw-r--r-- | Src/subst.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Src/Modules/datetime.c b/Src/Modules/datetime.c index cb85b8e09..d90791620 100644 --- a/Src/Modules/datetime.c +++ b/Src/Modules/datetime.c @@ -48,7 +48,7 @@ bin_strftime(char *nam, char **argv, Options ops, int func) } secs = (time_t)strtoul(argv[1], &endptr, 10); - if (secs == ULONG_MAX) { + if (secs == (time_t)ULONG_MAX) { zwarnnam(nam, "%s: %e", argv[1], errno); return 1; } else if (*endptr != '\0') { diff --git a/Src/subst.c b/Src/subst.c index d2d75ce79..f281bda50 100644 --- a/Src/subst.c +++ b/Src/subst.c @@ -1637,7 +1637,7 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int ssub) * Bet that's easier said than done. */ val = getstrvalue(v); - fwidth = v->pm->ct ? v->pm->ct : strlen(val); + fwidth = v->pm->ct ? v->pm->ct : (int)strlen(val); switch (v->pm->flags & (PM_LEFT | PM_RIGHT_B | PM_RIGHT_Z)) { char *t; unsigned int t0; |