Index: base/win/iat_patch_function.cc |
diff --git a/base/win/iat_patch_function.cc b/base/win/iat_patch_function.cc |
index 31659c6c82dc872e3496cd1d85e763d28fc3c329..be7c545b5acee2595a52d0b4d5b19b6841f74c8c 100644 |
--- a/base/win/iat_patch_function.cc |
+++ b/base/win/iat_patch_function.cc |
@@ -67,8 +67,9 @@ bool InterceptEnumCallback(const base::win::PEImage& image, const char* module, |
} |
// portability check |
- COMPILE_ASSERT(sizeof(iat->u1.Function) == |
- sizeof(intercept_information->new_function), unknown_IAT_thunk_format); |
+ static_assert( |
+ sizeof(iat->u1.Function) == sizeof(intercept_information->new_function), |
+ "unknown IAT thunk format"); |
// Patch the function. |
intercept_information->return_code = |