From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1cf653444208df72 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-15 14:21:06 PST From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: ada vs. cpp Date: Mon, 15 Oct 2001 23:25:52 +0200 Organization: Enyo's not your organization Message-ID: <87k7xwa93z.fsf@deneb.enyo.de> References: <9q7na102nqn@drn.newsguy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!easynet-tele!easynet.net!feed.news.nacamar.de!rz.uni-karlsruhe.de!news.uni-ulm.de!news.belwue.de!LF.net!news.enyo.de!news1.enyo.de!not-for-mail Xref: archiver1.google.com comp.lang.ada:14602 Date: 2001-10-15T23:25:52+02:00 List-Id: lutz@iks-jena.de (Lutz Donnerhacke) writes: > OTOH one of my DSPs has Character'Size = 32, > a pretty common problem to almost all C based programs, because they tend to > use constructs like > for (unsigned char c = 0; c < UCHAR_MAX + 1; c++) { ... } This code is never correct, "c < UCHAR_MAX + 1" is always true, I think. > This DSP is always funny because sizeof(int[8]) == 4. Funny indeed. Is this really legal C?