[Issue 9170] CTFE: Allow reinterpret casts float <-> int

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 18 10:13:29 PST 2012


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



--- Comment #1 from github-bugzilla at puremagic.com 2012-12-18 10:13:28 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/234fa182b11aaf7e9c87d5b4ad85a1121691e61a
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