tighten bound for Mac OS X 10.6 localtime() hack

It looks like my bound for last time was too conservative,
in that I looked for the lowest number that didn't seem
to fail in 10.6. The range of failing values is apparently
not continuous.

I've tightened the bound to match the lowest
number that produces a useful result on my 10.7 machine,
assuming that it works for a continuous range there.
(The new bound is higher than the number previously used as
a lower bound.)

Merge to 5.2.1
(cherry picked from commit ef846caaa1)
This commit is contained in:
Matthew Flatt 2012-01-30 14:01:06 -07:00 committed by Ryan Culpepper
parent 545f4187e6
commit a4a30200e5

View File

@ -768,7 +768,7 @@
#if defined(__x86_64__)
/* work around a bug in localtime() in 10.6.8 */
# define MIN_VALID_DATE_SECONDS -67768122973193999
# define MIN_VALID_DATE_SECONDS -67768040609715600
#endif
# define FLAGS_ALREADY_SET