Fix type punning in font_matcher_mac
It is undefined behavior in C++ to access memory of one type with a pointer of another type. Use bit_cast to safely do it. Bug: none Change-Id: I170c81e0cc7dc5b7bcf63b0776758c4c65a748bf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2340180 Auto-Submit: Avi Drissman <avi@chromium.org> Reviewed-by:Dominik Röttsches <drott@chromium.org> Commit-Queue: Avi Drissman <avi@chromium.org> Cr-Commit-Position: refs/heads/master@{#796438}
Showing
Please register or sign in to comment