Commit 2a28e881 authored by Paul Eggert's avatar Paul Eggert
Browse files

strptime: fix typo in previous patch

Problem and fix reported by Bruno Haible in:
https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
* lib/strptime.c (day_of_the_week): Fix paren bug.
parent 7f41a840
2019-12-24 Paul Eggert <eggert@cs.ucla.edu>
strptime: fix typo in previous patch
Problem and fix reported by Bruno Haible in:
https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
* lib/strptime.c (day_of_the_week): Fix paren bug.
2019-12-24 Bruno Haible <bruno@clisp.org>
 
setlocale-null: Make it easy to rely on the lock in another library.
......@@ -206,7 +206,7 @@ day_of_the_week (struct tm *tm)
int wday = (-473
+ (365 * (tm->tm_year - 70))
+ corr_quad
- (corr_quad + (corr_quad < 0)) / 25 - (corr_quad < 0)
- ((corr_quad + (corr_quad < 0)) / 25 - (corr_quad < 0))
+ ((corr_quad / 25) / 4)
+ __mon_yday[0][tm->tm_mon]
+ tm->tm_mday - 1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment