summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/abs.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-09-03 04:34:10 +0000
committerpeter <peter@FreeBSD.org>2002-09-03 04:34:10 +0000
commit2dc22e49268ddebe68cded7233384ee625be3a6d (patch)
treed0ac221786ea37c1b0d16321e110d967a03fe09d /lib/libc/stdlib/abs.c
parent20072affec15c51574156e050f90e3cb9583209c (diff)
downloadFreeBSD-src-2dc22e49268ddebe68cded7233384ee625be3a6d.zip
FreeBSD-src-2dc22e49268ddebe68cded7233384ee625be3a6d.tar.gz
Fix a nasty bug exposed by mktime() when time_t is significantly bigger
than 32 bits. It was trying to figure out things like the day of week of when time_t is roughly 2^62 etc. Make a better guess for the starting point for the binary search that works on both 32 and 64 bit types. I have been using this for a while now.
Diffstat (limited to 'lib/libc/stdlib/abs.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud