Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site mnetor.UUCP Path: utzoo!utcs!mnetor!clewis From: clewis@mnetor.UUCP (Chris Lewis) Newsgroups: net.sources Subject: A slight portability bug with vc. Message-ID: <405@mnetor.UUCP> Date: Wed, 10-Apr-85 14:00:30 EST Article-I.D.: mnetor.405 Posted: Wed Apr 10 14:00:30 1985 Date-Received: Wed, 10-Apr-85 15:15:38 EST Organization: Computer X (CANADA) Ltd., Toronto, Ontario, Canada Lines: 12 I have discovered a slight bug in vc that prevents the +/ and */ operators working on a Pyramid. It is quite simple really, in interp.c, just after the clause for O_REDUCE(+) there is a declaration for the variable to hold the running total of the summation or product: register double v; v is never initialized, hence you will get garbage on the stack as an initial value (a real nasty on a Pyramid). Change it to register double v = 0.0; -- Chris Lewis, Computer X (CANADA) Ltd. UUCP: {allegra, linus, ihnp4}!utzoo!mnetor!clewis BELL: (416)-475-1300 ext. 321