This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Avoiding "assignment from incompatible pointer type" warning


"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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]