From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11353 invoked by alias); 13 Oct 2002 22:09:14 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 11346 invoked from network); 13 Oct 2002 22:09:13 -0000 Received: from unknown (HELO mail.enyo.de) (212.9.189.162) by sources.redhat.com with SMTP; 13 Oct 2002 22:09:13 -0000 Received: from [212.9.189.171] (helo=deneb.enyo.de) by mail.enyo.de with esmtp (Exim 3.34 #2) id 180quz-0001yU-00; Mon, 14 Oct 2002 00:09:01 +0200 Received: from fw by deneb.enyo.de with local (Exim 3.34 #4) id 180qv8-0000dc-00; Mon, 14 Oct 2002 00:09:10 +0200 To: "Joshua Nye" Cc: "Steve Dondley" , Subject: Re: Avoiding "assignment from incompatible pointer type" warning References: <000d01c272d5$85368b20$0100a8c0@windows9q3yn19> From: Florian Weimer Mail-Followup-To: "Joshua Nye" , "Steve Dondley" , Date: Sun, 13 Oct 2002 15:09:00 -0000 In-Reply-To: <000d01c272d5$85368b20$0100a8c0@windows9q3yn19> ("Joshua Nye"'s message of "Sun, 13 Oct 2002 12:28:10 -0400") Message-ID: <87adlidm9l.fsf@deneb.enyo.de> User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-10/txt/msg00154.txt.bz2 "Joshua Nye" writes: > What you're looking for is a cast. i.e.: > > int *p; > float g = 3.141592653589793238; > p = (int *)&g; Is this code legal? I doubt it.