Path: utzoo!attcan!uunet!aplcen!samsung!usc!cs.utexas.edu!tut.cis.ohio-state.edu!purdue!bu.edu!bu-cs!dartvax!eleazar.dartmouth.edu!jskuskin From: jskuskin@eleazar.dartmouth.edu (Jeffrey Kuskin) Newsgroups: comp.sys.mac.programmer Subject: Re: THINK C bug Message-ID: <19195@dartvax.Dartmouth.EDU> Date: 7 Feb 90 16:37:02 GMT References: <6661@ucdavis.ucdavis.edu> Sender: news@dartvax.Dartmouth.EDU Organization: Dartmouth College, Hanover, NH Lines: 12 In article <6661@ucdavis.ucdavis.edu> lim@iris.ucdavis.edu (Lloyd Lim) writes: >I'm using THINK C 4.0 and it won't accept the constant -2147483648 but it >does accept -2147483647 and 2147483647. This value does fit in a long. >Curiously, it does accept 0x80000000 and -2147483647 - 1. > >Isn't this a bug or am I going to be called bunky? Have a look at the manual, page 457, under the "constant too large" error message explanation. Evidentally, all integer constants must have an *absoulte value* less than or equal to (2^31) - 1. -- Jeff Kuskin, Dartmouth College