From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12804 invoked by alias); 13 Oct 2002 22:10:34 -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 12797 invoked from network); 13 Oct 2002 22:10:33 -0000 Received: from unknown (HELO mail.enyo.de) (212.9.189.162) by sources.redhat.com with SMTP; 13 Oct 2002 22:10:33 -0000 Received: from [212.9.189.171] (helo=deneb.enyo.de) by mail.enyo.de with esmtp (Exim 3.34 #2) id 180qwJ-00021m-00; Mon, 14 Oct 2002 00:10:23 +0200 Received: from fw by deneb.enyo.de with local (Exim 3.34 #4) id 180qwS-0000dl-00; Mon, 14 Oct 2002 00:10:32 +0200 To: "Moore, Mathew L" Cc: 'Steve Dondley' , gcc-help@gcc.gnu.org Subject: Re: Avoiding "assignment from incompatible pointer type" warning References: <2F05A390F72A0A409390E016D23E45E8042DBE19@ns-bco-mse4.im.battelle.org> From: Florian Weimer Mail-Followup-To: "Moore, Mathew L" , 'Steve Dondley' , gcc-help@gcc.gnu.org Date: Sun, 13 Oct 2002 15:10:00 -0000 In-Reply-To: <2F05A390F72A0A409390E016D23E45E8042DBE19@ns-bco-mse4.im.battelle.org> ("Moore, Mathew L"'s message of "Sun, 13 Oct 2002 16:37:11 -0400") Message-ID: <877kgmdm7b.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/msg00155.txt.bz2 "Moore, Mathew L" writes: > While we are on this topic, is there a portable way to perform the > bit-wise examination of a floating point variable? You can read and write every object as a sequence of chars. So you don't even need a union, pointer fiddling would be sufficient.