X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Ftime.c;h=82ffab2c528e20b0d2a8e608413b606de695ce23;hb=7137cb0872e17772f26c432384da5eefa3e645d7;hp=b4049c8e7f589943b577ea8d87004ec5cf4fad35;hpb=5f711c8d7ed9e2a898e26291686ece3e4da6f9dc;p=sbcl.git diff --git a/src/runtime/time.c b/src/runtime/time.c index b4049c8..82ffab2 100644 --- a/src/runtime/time.c +++ b/src/runtime/time.c @@ -27,12 +27,12 @@ void get_timezone(time_t when, int *secwest, boolean *dst) /* No _r versions on Windows, but the API documentation also * doesn't warn them about being non-reentrant... So here's * hoping they actually are -- once Windows grows threads - * this better be checked, though. + * this better be checked, though. * * The Windows versions also don't support times before the * epoch, so we kludge it. */ - if (when < 0) - when = -when; + if (when < 0) + when = 0; ltm = *localtime(&when); gtm = *gmtime(&when); #else