aboutsummaryrefslogtreecommitdiffstats
path: root/builtin.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtin.c')
-rw-r--r--builtin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin.c b/builtin.c
index 04627a1c..64ad900c 100644
--- a/builtin.c
+++ b/builtin.c
@@ -1677,7 +1677,7 @@ do_strftime(int nargs)
if (do_lint && (t2->flags & (NUMCUR|NUMBER)) == 0)
lintwarn(_("strftime: received non-numeric second argument"));
fclock = (time_t) force_number(t2);
- if (fclock < 0)
+ if (((long int) fclock) < 0)
fatal(_("strftime: second argument less than 0 or too big for time_t"));
DEREF(t2);
}