This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Avoiding "assignment from incompatible pointer type" warning
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: "Moore, Mathew L" <MooreML at BATTELLE dot ORG>
- Cc: 'Steve Dondley' <s at dondley dot com>, gcc-help at gcc dot gnu dot org
- Date: Mon, 14 Oct 2002 00:10:32 +0200
- Subject: Re: Avoiding "assignment from incompatible pointer type" warning
- References: <2F05A390F72A0A409390E016D23E45E8042DBE19@ns-bco-mse4.im.battelle.org>
"Moore, Mathew L" <MooreML@BATTELLE.ORG> 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.