Path: utzoo!mnetor!uunet!husc6!endor!steve From: steve@endor.harvard.edu (Kaufer - Lopez - Pratap) Newsgroups: comp.lang.c Subject: Re: Constant overflow Message-ID: <4212@husc6.harvard.edu> Date: 13 Mar 88 05:24:50 GMT References: <2747@mmintl.UUCP> <675@xyzzy.UUCP> <568@myrias.UUCP> Sender: news@husc6.harvard.edu Reply-To: steve@endor.UUCP Organization: Aiken Computation Lab Harvard, Cambridge, MA Lines: 23 Here is the output from the Saber-C programming environment: (Running on SUN & VAX, Ultrix/Unix): Saber-C - Version 1.2c Copyright (C) 1986, 1987, 1988 by Saber Software, Inc. Attaching: /lib/libc.a 1 -> load("foo.c"); Loading: foo.c ---------------- "foo.c", line 2: Integer too large (Warning #220) 1: /* Sample overflow */ 2: long i = 9876543210L; ^ 3: Integer constant (9876543210) exceeds maximum unsigned long (4294967295). Options: continue/suppress/terse/quit/abort/edit/reload [c] ? Stephen Kaufer Saber Software, Inc. saber@harvard.harvard.edu 30 JFK Street, Cambridge, MA. 02138 (617) 876-7636