Replacing std.math raw pointer arithmetic with a union type
tsbockman via Digitalmars-d
digitalmars-d at puremagic.com
Thu May 18 20:57:29 PDT 2017
On Wednesday, 17 May 2017 at 20:25:26 UTC, Stefan Koch wrote:
> On Wednesday, 17 May 2017 at 19:26:32 UTC, tsbockman wrote:
>> On Wednesday, 17 May 2017 at 15:30:29 UTC, Stefan Koch wrote:
>>> the special case it supports if cast(uint*)&float;
>>> and cast(ulong*)&double.
>>
>> What about casting from real* when real.sizeof > double.sizeof?
>
> unsupported. The code in ctfeExpr (paintFloatInt) explicitly
> checks for size == 4 || size == 8
I have opened a DMD PR to fix this:
https://github.com/dlang/dmd/pull/6811
More information about the Digitalmars-d
mailing list