home *** CD-ROM | disk | FTP | other *** search
- Organization: Carnegie Mellon, Pittsburgh, PA
- Path: sparky!uunet!elroy.jpl.nasa.gov!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!news.sei.cmu.edu!fs7.ece.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!<UNAUTHENTICATED>+
- Newsgroups: comp.sys.amiga.programmer
- Message-ID: <wfAbJp_00hsB8sKGkb@cs.cmu.edu>
- Date: Fri, 18 Dec 1992 20:05:57 -0500
- From: Michael Witbrock <mjw+@cs.cmu.edu>
- Subject: OK SAS 2 users 0
- In-Reply-To: <BzGJM3.IB8@unx.sas.com>
- References: <S37732V.92Dec11104414@lk-hp-12.hut.fi> <Bz3nvr.82D@unx.sas.com> <8f=bT9K00hsBMrjYoD@cs.cmu.edu> <MfAFgcS00hsBMfL35d@cs.cmu.edu>
- <BzGJM3.IB8@unx.sas.com>
- Distribution: comp
- Lines: 27
-
- Excerpts from netnews.comp.sys.amiga.programmer: 18-Dec-92 Re: alleged
- Bug in SAS/C V6.. Doug Walker@twix.unx.sas (1903)
-
-
- > Reread your K&R quote about the ~ operator: "The default integer promotions
- > will be performed" or some such statement is in there. The default integer
- > promotions are:
-
- > char -> int
- > unsigned char -> int
- > short -> int
- unsigned short -> int
-
- Oh.... I didn't follow the pointers in K&R's barely tractable prose that
- far, since, fortunately, *I* don't work for a compiler company :-)
-
- So, now that SAS has proven beyond a shadow of a question that
-
- x= ~0;
- is wrong if sizeof(x)<sizeof(int) .... could someone please tell the
- author of gadtoolsbox so that he can fix the code generator (in fact,
- could someone let him test it thoroughly on SAS C, since it seems to be
- fiercely pedantic, and therefore *A GOOD THING*).
-
- Michael (who doubts that being told by SAS/C that your ~0 is too long is
- as galling as being told (with evident contempt in its ... voice ) by a
- CRAY-YMP that "your program apears to be a scalar code".
-