Union copy
"Luís
"Luís
Wed Oct 23 11:24:34 PDT 2013
On Wednesday, 23 October 2013 at 18:19:14 UTC, Luís Marques wrote:
> void main()
> {
> long srcL = 0x7ff7a50200000000;
> double* srcD = cast(double*) &srcL;
> double dst = *srcD;
>
> writef("src: %x\n", srcL);
> writef("dst: %x\n", *cast(long*) cast(void*) &dst);
> }
>
> If this is valid, the question seems to be why the
> quiet/signaling flag is changed.
(changed during the dst = *srcD assignment, I suppose):
src: 7ff7a50200000000
dst: 7fffa50200000000
More information about the Digitalmars-d
mailing list