[Webkit-unassigned] [Bug 226503] Fix inadvertent tag corruption in functionAddressOf

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 1 15:43:22 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=226503

--- Comment #5 from Darin Adler <darin at apple.com> ---
(In reply to Mikhail R. Gadelha from comment #4)
> Indeed, <uintptr_t> sounds like a better solution here, but we would still
> need the static_cast to 64 bits because of the bitcast<double>.

No static_cast needed. Write this:

    uint64_t asNumber = reinterpret_cast<uintptr_t>(value.asCell());

There’s no need for a static_cast on this line of code. The unsigned integer conversion, with possible promotion, can be done without any casting.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210601/ad703379/attachment.htm>


More information about the webkit-unassigned mailing list