Article View: comp.sys.atari.st
Article #27464Re: Bug in Alcyon C v4.14 (not a bug) (yes, a bug!)
From: Sandra J Loosemore
Date: Sun, 05 Jul 1987 23:13
Date: Sun, 05 Jul 1987 23:13
11 lines
1141 bytes
1141 bytes
As a number of people have pointed out to me, there is a bug in my understanding of how pointer arithmetic is supposed to work -- the only example I could find in K&R which showed adding an integer to a pointer used a char pointer, so I had assumed it was always treated as a byte offset. However, THERE IS STILL A BUG IN ALCYON C!!!! Or does the C standard say that 2**13 * 2**13 = 2**27, too??? And there is still that second problem I mentioned, where it was generating a CLR instead of a multiply.... -Sandra Loosemore sandra@cs.utah.edu, sandra@utah-cs.uucp
Technical Details
Message-ID:
<4716@utah-cs.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!ut-sally!utah-cs!sandraReferences:
<4713@utah-cs.UUCP> <13802@watmath.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!ut-sally!utah-cs!sandra From: sandra@utah-cs.UUCP (Sandra J Loosemore) Newsgroups: comp.sys.atari.st Subject: Re: Bug in Alcyon C v4.14 (not a bug) (yes, a bug!) Message-ID: <4716@utah-cs.UUCP> Date: Sun, 5-Jul-87 19:13:00 EDT Article-I.D.: utah-cs.4716 Posted: Sun Jul 5 19:13:00 1987 Date-Received: Mon, 6-Jul-87 00:35:32 EDT References: <4713@utah-cs.UUCP> <13802@watmath.UUCP> Organization: University of Utah CS Dept Lines: 11 Keywords: bug pointer arithmetic