Chromium Code Reviews| Index: base/win/pe_image.h |
| diff --git a/base/win/pe_image.h b/base/win/pe_image.h |
| index d93e99dc14393b1f782d3752c3bbeba2accbef71..8fc4b7c4f023977554e3942a2f0fac2cf1d19515 100644 |
| --- a/base/win/pe_image.h |
| +++ b/base/win/pe_image.h |
| @@ -247,7 +247,7 @@ inline bool PEImage::IsOrdinal(LPCSTR name) { |
| } |
| inline WORD PEImage::ToOrdinal(LPCSTR name) { |
| - return reinterpret_cast<WORD>(name); |
| + return static_cast<WORD>(reinterpret_cast<intptr_t>(name)); |
| } |
| inline HMODULE PEImage::module() const { |