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

Unified Diff: util/mac/mach_o_image_segment_reader.cc

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/mac/mach_o_image_reader.cc ('k') | util/mach/exc_server_variants_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/mac/mach_o_image_segment_reader.cc
diff --git a/util/mac/mach_o_image_segment_reader.cc b/util/mac/mach_o_image_segment_reader.cc
index 0625f39287b57e2e6ea8dca0f78be61a09af2e98..3a2c37bf051e47c8b9340abfd044396a8aeaa3dc 100644
--- a/util/mac/mach_o_image_segment_reader.cc
+++ b/util/mac/mach_o_image_segment_reader.cc
@@ -237,9 +237,9 @@ std::string MachOImageSegmentReader::SegmentNameString(
const char* segment_name_c) {
// This is used to interpret the segname field of both the segment_command and
// section structures, so be sure that they’re identical.
- COMPILE_ASSERT(sizeof(process_types::segment_command::segname) ==
- sizeof(process_types::section::segname),
- sizes_must_be_equal);
+ static_assert(sizeof(process_types::segment_command::segname) ==
+ sizeof(process_types::section::segname),
+ "sizes must be equal");
return SizeLimitedCString(segment_name_c,
sizeof(process_types::segment_command::segname));
« no previous file with comments | « util/mac/mach_o_image_reader.cc ('k') | util/mach/exc_server_variants_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698