Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!watnot!watrose!jafischer From: jafischer@watrose.UUCP Newsgroups: comp.sys.atari.st Subject: Re: C compiler (Megamax 'bugs') Message-ID: <8416@watrose.UUCP> Date: Thu, 29-Jan-87 00:36:28 EST Article-I.D.: watrose.8416 Posted: Thu Jan 29 00:36:28 1987 Date-Received: Thu, 29-Jan-87 18:55:03 EST References: <8701231914.AA14914@ucbvax.Berkeley.EDU> <8400@watrose.UUCP> <2139@batcomputer.tn.cornell.edu> Reply-To: jafischer@watrose.UUCP (Jonathan Fischer) Organization: U. of Waterloo, Ontario Lines: 33 In article <2139@batcomputer.tn.cornell.edu> braner@batcomputer.UUCP (braner) writes: > ... you should write > if ((int)Cnecin() == 'q')... Woops. My apologies, I assumed that Cnecin() was actually an int function. You got me there! But wait, >My experiments on the modulus operator (%) and the post-increment (++) >didn't show any problems. (If you have a SPECIFIC example, Jonathan, >tell me.) I'll try to dig up some examples, Moshe. At one point, I was printing out the values right where the '%' was causing me problems, and yup, they were negative. It was some code that worked fine on the IBM PC (Lattice) and PDP-11 compilers at work, but wouldn't work on Megamax on the ST. I ended up using floating point to work around it. The '++' thingy is more obscure, but it was definitely happening once. At least once. Again, it was something I'd written at work which wouldn't work on the ST. I'll look for the code and post it if it's still lying around on a disk somewhere. I suppose (meekness and humility emanating from your screen here...) that I was wrong in posting bug reports without some cold hard code to back up my claims. Unsubstantiated claims like that border on slander, right? Like, I'm dead meat, right? Lawsuit city... No! It was a Unix daemon, not me, who sent that message! ...And, of course, once I post the code, someone (probably Moshe) will point out the obvious error on my part... No, seriously, I'm pretty darn sure about these two errors. I'll look up those two code examples & post 'em pronto. -- - Jonathan Fischer (jafischer@watrose) or: watmath!watrose!jafischer or: jafischer%watrose@waterloo.csnet or: jafischer%watrose@waterloo.csnet@csnet-relay.arpa