Commit 6e5e28dc authored by Arthur Eubanks's avatar Arthur Eubanks Committed by Commit Bot

Cast pointer to uintptr_t

Pointers are only guaranteed to be castable to an integer of at least
the same size.

Bug: 1059231
Change-Id: I6c6089a13f5350745489915dd6ba41069a2a1a83
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2098273
Auto-Submit: Arthur Eubanks <aeubanks@google.com>
Reviewed-by: default avatarGary Kacmarcik <garykac@chromium.org>
Commit-Queue: Gary Kacmarcik <garykac@chromium.org>
Cr-Commit-Position: refs/heads/master@{#749489}
parent 4b131cbf
......@@ -103,7 +103,7 @@ ui::DomKey DomKeyboardLayoutMapWin::GetDomKeyFromDomCodeForLayout(
base::size(char_buffer), /*wFlags=*/0, keyboard_layout);
// Handle special cases for Japanese keyboard layout.
if (0x04110411 == reinterpret_cast<unsigned int>(keyboard_layout)) {
if (0x04110411 == reinterpret_cast<uintptr_t>(keyboard_layout)) {
// Fix value for Japanese yen currency symbol.
// Windows returns '\' for both IntlRo and IntlYen, even though IntlYen
// should be the yen symbol.
......@@ -121,7 +121,7 @@ ui::DomKey DomKeyboardLayoutMapWin::GetDomKeyFromDomCodeForLayout(
}
// Handle special cases for Korean keyboard layout.
if (0x04120412 == reinterpret_cast<unsigned int>(keyboard_layout)) {
if (0x04120412 == reinterpret_cast<uintptr_t>(keyboard_layout)) {
// Fix value for Korean won currency symbol.
// Windows returns '\' for both Backslash and IntlBackslash, even though
// IntlBackslash should be the won symbol.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment