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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,31c0457c1c47fc2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-25 10:59:54 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!cambridge1-snf1.gtei.net!news.gtei.net!bos-service1.ext.raytheon.com!dfw-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3BD8529B.71010C5B@sparc01.ftw.rsc.raytheon.com> From: Wes Groleau Reply-To: wwgrol@sparc01.ftw.rsc.raytheon.com X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en,es-MX,es,pt,fr-CA,fr MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Have you ever had a bug OOPS References: <27085883.0110191714.784d3d25@posting.google.com> <3BD7DD2B.A8FD8448@brighton.ac.uk> <3BD832AE.35A4B31B@sparc01.ftw.rsc.raytheon.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 25 Oct 2001 12:57:47 -0500 NNTP-Posting-Host: 151.168.144.162 X-Complaints-To: news@ext.ray.com X-Trace: dfw-service2.ext.raytheon.com 1004032673 151.168.144.162 (Thu, 25 Oct 2001 12:57:53 CDT) NNTP-Posting-Date: Thu, 25 Oct 2001 12:57:53 CDT Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:15192 Date: 2001-10-25T12:57:47-05:00 List-Id: Someone pointed out that I goofed in my C syntax. Here is the correction: > some_file.h, line 1537: > > define THE_MAX = 100 > > my_file.c, line whatever: > > for (i=THE_MAX; i==0; i--) {...} > > OR > > for (i=0; i=THE_MAX; i++) > > OR > > goal=THE_MAX; /* set a new goal */ And just in case it's obscure, the point was that after preprocessing, the error in the header file means one loop never ends, the other is stopped immediately, and goal is unchanged. Of course, the second loop has an error of its own or it would not compile. Interesting, too, that one of the mistakes I made in my first post is the reverse of the one I was trying to illustrate! -- Wes Groleau http://freepages.rootsweb.com/~wgroleau