From owner-cvs-all Mon Sep 2 21:34:15 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7774037B401; Mon, 2 Sep 2002 21:34:11 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D33BD43E3B; Mon, 2 Sep 2002 21:34:10 -0700 (PDT) (envelope-from peter@FreeBSD.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g834YAJU018942; Mon, 2 Sep 2002 21:34:10 -0700 (PDT) (envelope-from peter@freefall.freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g834YADw018941; Mon, 2 Sep 2002 21:34:10 -0700 (PDT) Message-Id: <200209030434.g834YADw018941@freefall.freebsd.org> From: Peter Wemm Date: Mon, 2 Sep 2002 21:34:10 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/stdtime localtime.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG peter 2002/09/02 21:34:10 PDT Modified files: lib/libc/stdtime localtime.c Log: 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. Revision Changes Path 1.33 +6 -0 src/lib/libc/stdtime/localtime.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message