diff options
Diffstat (limited to 'winsup/cygwin/libc/strptime.cc')
-rw-r--r-- | winsup/cygwin/libc/strptime.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/libc/strptime.cc b/winsup/cygwin/libc/strptime.cc index 4cd9256bc..cbb3e0ce9 100644 --- a/winsup/cygwin/libc/strptime.cc +++ b/winsup/cygwin/libc/strptime.cc @@ -703,8 +703,8 @@ literal: const unsigned char *ep; ep = find_string(bp, &i, - (const char * const *)tzname, - NULL, 2, locale); + (const char * const *)tzname, + NULL, 2, locale); if (ep != NULL) { tm->tm_isdst = i; #ifdef TM_GMTOFF @@ -750,7 +750,7 @@ literal: /* Check if year falls into the era. If not, it's an invalid combination of era and offset. */ if (era->start.tm_year > tm->tm_year - || era->end.tm_year < tm->tm_year) + || era->end.tm_year < tm->tm_year) return NULL; tm->tm_year -= TM_YEAR_BASE; } |