🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #174

INT_MIN bug

#174
From: Paul de Bra
Date: Wed, 18 Jul 1990 07:41
14 lines
898 bytes
In sVr3.2 (on the 386) the file <limits.h> contains the definitions
#define INT_MIN 	-2147483648
and
#define LONG_MIN	-2147483648L

which, according to K&R (second edition) are unsigned (constant) expressions
in ANSI C.

This bug (at least a similar one) caused trouble compiling groff with gcc.

Does sVr4.0 have correct values in limits.h?

Paul.
(debra@research.att.com)
Technical Details
Message-ID: <1295@tuewsd.win.tue.nl>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!wuarchive!mit-eddie!bloom-beacon!eru!luth!sunic!mcsun!hp4nl!tuegate.tue.nl!tuewsd!wsinpdb

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!wuarchive!mit-eddie!bloom-beacon!eru!luth!sunic!mcsun!hp4nl!tuegate.tue.nl!tuewsd!wsinpdb
From: wsinpdb@lso.win.tue.nl (Paul de Bra)
Newsgroups: comp.bugs.sys5
Subject: INT_MIN bug
Keywords: negative constants, overflow
Message-ID: <1295@tuewsd.win.tue.nl>
Date: 18 Jul 90 07:41:06 GMT
Sender: wsinpdb@win.tue.nl (Paul de Bra)
Organization: Eindhoven University of Technology, The Netherlands
Lines: 14