[Webkit-unassigned] [Bug 28391] Incorrect casts in JavaScriptCore with gcc-3.4

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 21 15:04:12 PDT 2009


--- Comment #6 from Gavin Barraclough <barraclough at apple.com>  2009-08-21 15:04:11 PDT ---
My bad on the comment, I should make this more descriptive.  That said, I
reassert my statement about reinterpret_cast lacking cojones. :-)

The real intention of the cast was to cast between POD types, (int64_t and
double), so it sounds like this is safe, but I'll look into this more at some

If this is not safe, maybe we should more explicitly limit this (maybe we can
do a kind of compile assert with a template specialization to guard against
bitwise_cast being used with pointers, if that helps), or we could remove the
generic cast from WTF and just make this an explicit cast within JSImmediate to
prevent further use.  Or we can always implement this in inline asm, if
absolutely necessary.  (Oh, c++, why are you so dumb).

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list