Index: sandbox/win/src/eat_resolver.cc |
diff --git a/sandbox/win/src/eat_resolver.cc b/sandbox/win/src/eat_resolver.cc |
index 328ee00f2f171f3b43d6371badd6f084bbf692bd..1675ce84eb02172e8488de77ae344c4835dff8f2 100644 |
--- a/sandbox/win/src/eat_resolver.cc |
+++ b/sandbox/win/src/eat_resolver.cc |
@@ -45,12 +45,8 @@ NTSTATUS EatResolverThunk::Setup(const void* target_module, |
return ret; |
// Perform the patch. |
-#pragma warning(push) |
-#pragma warning(disable: 4311) |
- // These casts generate warnings because they are 32 bit specific. |
- *eat_entry_ = reinterpret_cast<DWORD>(thunk_storage) - |
- reinterpret_cast<DWORD>(target_module); |
-#pragma warning(pop) |
+ *eat_entry_ = static_cast<DWORD>(reinterpret_cast<uintptr_t>(thunk_storage)) - |
+ static_cast<DWORD>(reinterpret_cast<uintptr_t>(target_module)); |
if (NULL != storage_used) |
*storage_used = GetThunkSize(); |