Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!watmath!clyde!floyd!harpo!seismo!hao!hplabs!sri-unix!pb%camjenny@ucl-cs.arpa
From: pb%camjenny@ucl-cs.arpa
Newsgroups: net.unix-wizards
Subject: Re: read(fd,&y,sizeof y)
Message-ID: <17573@sri-arpa.UUCP>
Date: Thu, 15-Mar-84 08:58:18 EST
Article-I.D.: sri-arpa.17573
Posted: Thu Mar 15 08:58:18 1984
Date-Received: Mon, 19-Mar-84 08:13:32 EST
Lines: 9

From:  Piete Brooks 

Consider the case of a WORD addressed machine, such as the PERQ.
It encodes BYTE pointers specially, shifting them left.
Thus the WORD pointer for an object and it's BYTE pointer are NOT the same.
As the compiler does not know that read expects a BYTE pointer, when given a
WORD pointer, it will not CAST it for you, unless you EXPLICITLY tell it to.
 
It does keep one on one's toes ..........