May 19, 2017 Re: Replacing std.math raw pointer arithmetic with a union type | ||||
---|---|---|---|---|
| ||||
Posted in reply to Stefan Koch | 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 |
Copyright © 1999-2021 by the D Language Foundation