]> git.ipfire.org Git - thirdparty/glibc.git/commit - ChangeLog
mktime: do not assume 'long' is wide enough
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 16 Mar 2012 09:48:38 +0000 (02:48 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 23 May 2012 21:36:24 +0000 (14:36 -0700)
commitf04dfbc244efb683e395d40c08c86fb93e679167
tree19bca32482b3e5b046641a77db91a8f8cb28f8db
parent62bdf9a68363655f0a3d03f930de2bda97a161cc
mktime: do not assume 'long' is wide enough

* time/mktime.c (verify): Move decl up.
(long_int): New type.
(leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
to remove assumption in the code that 'long' is wide enough to
store year values.  This assumption is not true on x32 and on
some non-glibc platforms.
ChangeLog
time/mktime.c