[Issue 9170] (D1 only) CTFE: Allow reinterpret casts float <-> int

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 18 11:23:04 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9170



--- Comment #3 from github-bugzilla at puremagic.com 2013-04-18 11:23:02 PDT ---
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/41bc0a847e8390a5c8ae61f013a1b8dc7926a863
Fix issue 9170 CTFE: Allow reinterpret casts float <-> int

Only allows the special case *(cast(U*))&e, where e is an expression
of type T, T.sizeof == U.sizeof, one type is integral
(int, uint, long, ulong) and the other is floating point (float,
double, ifloat, idouble).
Purpose: allow implementation of HalfFloat.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list