diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-03-05 22:29:31 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-03-05 22:29:31 +0200 |
commit | 74b2c04497f27bd292b9789c6ae1e8cf0177bdbc (patch) | |
tree | 0cf00502e3b39e48e2381caa3ea7f34e190b59d5 | |
parent | ab9f3c17db6900d3842f2252cd7179a457fcaec8 (diff) | |
parent | 31206f0309881ee76cb7aba8c7537b15c34b78aa (diff) | |
download | egawk-74b2c04497f27bd292b9789c6ae1e8cf0177bdbc.tar.gz egawk-74b2c04497f27bd292b9789c6ae1e8cf0177bdbc.tar.bz2 egawk-74b2c04497f27bd292b9789c6ae1e8cf0177bdbc.zip |
Merge branch 'gawk-4.1-stable'
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | builtin.c | 8 |
2 files changed, 9 insertions, 4 deletions
@@ -14,6 +14,11 @@ * debug.c (do_commands): Initialize num to silence warnings. Thanks to Michal Jaegermann. + Unrelated: + + * builtin.c (do_mktime): Change lint warning for minutes to + check against 59, not 60. Thanks to Hermann Peifer for the report. + 2014-03-03 Arnold D. Robbins <arnold@skeeve.com> * dfa.c: Sync with grep. Yet again. @@ -1999,10 +1999,10 @@ do_mktime(int nargs) & hour, & minute, & second, & dst); - if (do_lint /* Ready? Set! Go: */ - && ( (second < 0 || second > 60) - || (minute < 0 || minute > 60) - || (hour < 0 || hour > 23) + if ( do_lint /* Ready? Set! Go: */ + && ( (second < 0 || second > 60) + || (minute < 0 || minute > 59) + || (hour < 0 || hour > 23) /* FIXME ISO 8601 allows 24 ? */ || (day < 1 || day > 31) || (month < 1 || month > 12) )) lintwarn(_("mktime: at least one of the values is out of the default range")); |