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

Unified Diff: util/numeric/int128.h

Issue 615923004: Convert COMPILE_ASSERT to static_assert (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: fixes Created 6 years, 3 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 | « util/numeric/checked_range.h ('k') | util/numeric/int128_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/numeric/int128.h
diff --git a/util/numeric/int128.h b/util/numeric/int128.h
index 75b8b6a8db10fcb8d2ff4e8f2bde3acf801e40e0..c57bed6d282ad23a49e29d4dea94160788b66328 100644
--- a/util/numeric/int128.h
+++ b/util/numeric/int128.h
@@ -17,7 +17,6 @@
#include <stdint.h>
-#include "base/basictypes.h"
#include "build/build_config.h"
namespace crashpad {
@@ -46,7 +45,7 @@ struct uint128_struct {
#endif
};
-COMPILE_ASSERT(sizeof(uint128_struct) == 16, uint128_must_be_16_bytes);
+static_assert(sizeof(uint128_struct) == 16, "uint128 must be 16 bytes");
} // namespace crashpad
« no previous file with comments | « util/numeric/checked_range.h ('k') | util/numeric/int128_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698