Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!mcvax!ukc!dcl-cs!stephen From: stephen@comp.lancs.ac.uk (Stephen J. Muir) Newsgroups: net.lang.c++ Subject: C++ doesn't output unsigned correctly. Message-ID: <376@comp.lancs.ac.uk> Date: Sun, 17-Aug-86 21:33:33 EDT Article-I.D.: comp.376 Posted: Sun Aug 17 21:33:33 1986 Date-Received: Wed, 20-Aug-86 23:31:17 EDT Reply-To: stephen@comp.lancs.ac.uk (Stephen J. Muir) Organization: Department of Computing at Lancaster University, UK. Lines: 15 This program incorrectly prints minus one: # include main () { unsigned x = -1; cout << x << "\n"; } C++ version 1.1, BSD 4.2, DEC VAX-11/750. -- EMAIL: stephen@comp.lancs.ac.uk | Post: University of Lancaster, UUCP: ...!mcvax!ukc!dcl-cs!stephen | Department of Computing, Phone: +44 524 65201 Ext. 4120 | Bailrigg, Lancaster, UK. Project:Alvey ECLIPSE Distribution | LA1 4YR