Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3477)

Unified Diff: base/win/iat_patch_function.cc

Issue 1467003002: Switch to static_assert in base/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: / Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/win/i18n.cc ('k') | base/win/scoped_bstr.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 =
« no previous file with comments | « base/win/i18n.cc ('k') | base/win/scoped_bstr.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698