Subject: RE: GCC double -> int64_t conversion
To: port-arm32@netbsd.org <port-arm32@NetBSD.ORG>
From: Tim Senior <tims@PhoneLink.COM>
List: port-arm32
Date: 12/19/1997 09:11:14
> Surely doing a (long) just means that you're telling that the contents
> of memory at variable wibble's address is a long rather than that it
> is to load in the double and then convert it to a long.

No - using a (long) cast will implicitly convert eg a double of 2.0 to
a long of 2.  Casting a pointer to a double of 2.0 to a (long*) will do
what you suggest, eg (long*) &fVariable.

cheers,

Tim.