Date: Sat, 5 Sep 1998 16:37:47 +0400 From: "Andrey A. Chernov" <ache@nagual.pp.ru> To: John Birrell <jb@FreeBSD.ORG>, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc/gen sleep.c Message-ID: <19980905163746.A21849@nagual.pp.ru> In-Reply-To: <199809050801.BAA19622@freefall.freebsd.org>; from jb@FreeBSD.ORG on Sat, Sep 05, 1998 at 01:01:27AM -0700 References: <199809050801.BAA19622@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980905163746.A21849>