diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-12-12 18:23:00 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-12-12 18:23:00 +0000 |
commit | f63e5063410e030f856956f12b3472499c3129e2 (patch) | |
tree | cfb0fde714c22c8d646a4dbe2beaebafd1f3611e /time/mktime.c | |
parent | a78814a99acf70c9ccc967417a082cc8117586b4 (diff) | |
download | glibc-f63e5063410e030f856956f12b3472499c3129e2.tar.gz glibc-f63e5063410e030f856956f12b3472499c3129e2.tar.xz glibc-f63e5063410e030f856956f12b3472499c3129e2.zip |
* time/bug-getdate1.c (do_test): Don't use century values which
aren't valid on 32-bit systems.
Diffstat (limited to 'time/mktime.c')
-rw-r--r-- | time/mktime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/time/mktime.c b/time/mktime.c index 8f00c72e09..e299375a16 100644 --- a/time/mktime.c +++ b/time/mktime.c @@ -1,5 +1,5 @@ /* Convert a `struct tm' to a time_t value. - Copyright (C) 1993-1999, 2002-2005, 2006 Free Software Foundation, Inc. + Copyright (C) 1993-1999, 2002-2006, 2007 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Paul Eggert <eggert@twinsun.com>. @@ -372,7 +372,7 @@ __mktime_internal (struct tm *tp, int diff = approx_biennia - approx_requested_biennia; int abs_diff = diff < 0 ? - diff : diff; - /* IRIX 4.0.5 cc miscaculates TIME_T_MIN / 3: it erroneously + /* IRIX 4.0.5 cc miscalculates TIME_T_MIN / 3: it erroneously gives a positive value of 715827882. Setting a variable first then doing math on it seems to work. (ghazi@caip.rutgers.edu) */ |