Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: net.micro.68k,net.lang.c Subject: Re: Question of Ignorance Message-ID: <5590@utzoo.UUCP> Date: Sat, 11-May-85 20:06:36 EDT Article-I.D.: utzoo.5590 Posted: Sat May 11 20:06:36 1985 Date-Received: Sat, 11-May-85 20:06:36 EDT References: <198@unccvax.UUCP>, <1427@bbncca.ARPA> Organization: U of Toronto Zoology Lines: 12 > ... I recommend using one of the two constructs > > ( longptr == (long *)32 ) > or ( (int)longptr == 32 ) > > which are guaranteed to do what you want ... Argh, WRONG!! Turn that "(int)" into "(long)" and I might agree. You have no guarantees that an int is long enough to hold a pointer. -- Henry Spencer @ U of Toronto Zoology {allegra,ihnp4,linus,decvax}!utzoo!henry