Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!tektronix!psueea!psu-cs.cs.pdx.edu!bartonr From: bartonr@psu-cs.cs.pdx.edu (Robert Barton) Newsgroups: comp.lang.modula2 Subject: -32768 Message-ID: <1187@psueea.UUCP> Date: 13 May 89 05:47:21 GMT Sender: news@psueea.UUCP Reply-To: bartonr@psu-cs.cs.pdx.edu (Robert Barton) Organization: Dept. of Computer Science, Portland State University; Portland OR Lines: 23 Here is a summary of the results of WriteInt(-32768, 12): Compiler Version Output TDI Modula-2/Amiga 3.01 8000H -4294934528 TDI Modula-2/ST 2.30a M2S M2Sprint Amiga 1.00a 8000 -32768 ETH Modula-2 For Encore Multimax 2.00 Logitech Modula2/86 2.02 8000 -32768 Logitech Modula2/86 3.03 8000 -32768 M2Amiga 3.2 FFFF8000 -32768 Oregon Software Xenix/386 FFFF8000 -32768 Oregon Software Sun-3 FFFF8000 -32768 Sun Modula-2 2.1 FFFF8000 -32768 The TDI ST compiler wouldn't accept the assignment int := -32768, giving "this type is not expected". The person with the ETH compiler got a run-time range error. He also mentioned that on his system MinInt was defined as 080000000H rather than 08000H, so I can't figure that one out. The M2Amiga, Oregon Software, and Sun compilers apparently use 32-bit INTEGER and CARDINAL. I wonder how they handle WriteInt(-2147483648, 12) ? Thanks to everyone who responded.