Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!visix!news From: amanda@visix.com (Amanda Walker) Newsgroups: comp.sys.mac.programmer Subject: Re: Another MPW C 3.2final bug. Message-ID: <1991Jun24.075828.7953@visix.com> Date: 24 Jun 91 07:58:28 GMT References: <1991Jun21.163520.22236@techbook.com> <54265@apple.Apple.COM> Sender: news@visix.com Organization: Visix Software Inc., Reston, VA Lines: 18 In article <54265@apple.Apple.COM> keith@Apple.COM (Keith Rollin) writes: > return !( (AbsInt(p1.h-p2.h) > CLOSE_DELTA) | > (AbsInt(p1.v-p2.v) > CLOSE_DELTA) ); If you use a logical or (||) instead of bitwise (|), it seems to generate correct code. That's a useful workaround, but it's still a bug... MPW C has had problems with the values of comparison expression ever since 3.0 (the switch from Green Hills C to Apple C). Sigh. And no end in sight... Grumble, grumble :). -- Amanda Walker amanda@visix.com Visix Software Inc. ...!uunet!visix!amanda -- "We are confronted with insurmountable opportunities." --Walt Kelly, "Pogo"