Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Nov 2000 15:29:43 +0100 (CET)
From:      "Bradley T. Hughes" <bhughes@trolltech.com>
To:        freebsd-stable@freebsd.org
Subject:   Re: /usr/include/machine/limits.h
Message-ID:  <Pine.BSF.4.21.0011041528290.32594-100000@reticent.troll.no>
In-Reply-To: <Pine.BSF.4.21.0011041523230.17094-100000@reticent.troll.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 4 Nov 2000, Bradley T. Hughes wrote:

> when assigning SHRT_MIN to a short (ie. short foo = SHRT_MIN;) gcc
> complains:
> 
> warning: overflow in implicit constant conversion
> 
> SHRT_MIN is defined as (-0x7fff - 1) (seems pretty correct to me)...

actually... i miss counted f's :

#define SHRT_MIN        (-0x7ffff - 1)  /* min value for a short */

--
Bradley T. Hughes <bhughes@trolltech.com>
Trolltech AS - Waldemar Thranes gt. 98B N-0175 Oslo, Norway
Office: +47 21604892
Mobile: +47 92019781



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0011041528290.32594-100000>