Article View: net.lang.c
Article #9677Re: absolute pointer
From: Henry Spencer
Date: Fri, 31 Oct 1986 00:51
Date: Fri, 31 Oct 1986 00:51
10 lines
823 bytes
823 bytes
> rap.c, line 310: warning: absolute pointer used
>
> if ( shmaddr EQ (char *) -1 ) {
The compiler is trying to warn you, in a somewhat cryptic way, that casting
any integer except the constant 0 into a pointer is a machine-dependent,
unportable, and dangerous operation.
--
Henry Spencer @ U of Toronto Zoology
{allegra,ihnp4,decvax,pyramid}!utzoo!henry
Technical Details
Message-ID:
<7267@utzoo.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!henryShow Full Headers
Complete Article Headers
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: arc1-ca.pugleaf.net!utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: net.lang.c Subject: Re: absolute pointer Message-ID: <7267@utzoo.UUCP> Date: Thu, 30-Oct-86 19:51:25 EST Article-I.D.: utzoo.7267 Posted: Thu Oct 30 19:51:25 1986 Date-Received: Thu, 30-Oct-86 19:51:25 EST Organization: U of Toronto Zoology Lines: 10