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

Unified Diff: ppapi/shared_impl/id_assignment.cc

Issue 824153003: replace COMPILE_ASSERT with static_assert in ppapi/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 5 years, 11 months 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 | « ppapi/proxy/ppapi_message_utils.h ('k') | ppapi/shared_impl/ppb_gamepad_shared.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/id_assignment.cc
diff --git a/ppapi/shared_impl/id_assignment.cc b/ppapi/shared_impl/id_assignment.cc
index 363dbb49f910ef7d9e1c85b4b4a065a3e1514605..5c5aed6b82271e5795eff0e55baeafb70419ad56 100644
--- a/ppapi/shared_impl/id_assignment.cc
+++ b/ppapi/shared_impl/id_assignment.cc
@@ -12,7 +12,7 @@ const unsigned int kPPIdTypeBits = 2;
const int32 kMaxPPId = kint32max >> kPPIdTypeBits;
-COMPILE_ASSERT(PP_ID_TYPE_COUNT <= (1 << kPPIdTypeBits),
- kPPIdTypeBits_is_too_small_for_all_id_types);
+static_assert(PP_ID_TYPE_COUNT <= (1 << kPPIdTypeBits),
+ "kPPIdTypeBits is too small for all id types");
} // namespace ppapi
« no previous file with comments | « ppapi/proxy/ppapi_message_utils.h ('k') | ppapi/shared_impl/ppb_gamepad_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698