🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2853

gcc 1.36 bug with INT_MIN and/or LONG_MIN ?

#2853
From: meissner
Date: Tue, 06 Feb 1990 14:26
7 lines
666 bytes
| <rms>  That is no bug.  2147483648 has type unsigned int.
| 
| True.  But doesn't (-2147483648) have type signed int?  After all, it is
| less than or equal to LONG_MIN.

No, on 32-bit machines -2147483648 has type unsigned int (the negation
does not change it's type).
Technical Details
Message-ID: <9002061426.AA06797@curley.osf.org.osf.org>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!osf.org!meissner

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!osf.org!meissner
From: meissner@osf.org
Newsgroups: gnu.gcc.bug
Subject: gcc 1.36 bug with INT_MIN and/or LONG_MIN ?
Message-ID: <9002061426.AA06797@curley.osf.org.osf.org>
Date: 6 Feb 90 14:26:22 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 7