From owner-cvs-all Sat Sep 5 05:39:45 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA21089 for cvs-all-outgoing; Sat, 5 Sep 1998 05:39:45 -0700 (PDT) (envelope-from owner-cvs-all) Received: from nagual.pp.ru (lsd.relcom.eu.net [193.125.27.73]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA21063; Sat, 5 Sep 1998 05:38:55 -0700 (PDT) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.9.1/8.9.1) id QAA23029; Sat, 5 Sep 1998 16:37:47 +0400 (MSD) (envelope-from ache) Message-ID: <19980905163746.A21849@nagual.pp.ru> Date: Sat, 5 Sep 1998 16:37:47 +0400 From: "Andrey A. Chernov" To: John Birrell , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc/gen sleep.c Mail-Followup-To: John Birrell , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG References: <199809050801.BAA19622@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <199809050801.BAA19622@freefall.freebsd.org>; from jb@FreeBSD.ORG on Sat, Sep 05, 1998 at 01:01:27AM -0700 Organization: Biomechanoid Sender: owner-cvs-all@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sat, Sep 05, 1998 at 01:01:27AM -0700, John Birrell wrote: > jb 1998/09/05 01:01:27 PDT > > Modified files: > lib/libc/gen sleep.c > Log: > Use INT_MAX instead of LONG_MAX since the variable being compared > is an int, not a long. Please back it out, the test covers the case when sizeof(unsigned) == sizeof(long) and prevents to overflow signed long with unsigned value. -- Andrey A. Chernov http://www.nagual.pp.ru/~ache/ MTH/SH/HE S-- W-- N+ PEC>+ D A a++ C G>+ QH+(++) 666+>++ Y