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

Unified Diff: courgette/encoded_program.cc

Issue 857153003: Use "static_assert" in lieu of "COMPILE_ASSERT" in courgete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « courgette/difference_estimator.cc ('k') | courgette/third_party/bsdiff_apply.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/encoded_program.cc
diff --git a/courgette/encoded_program.cc b/courgette/encoded_program.cc
index f198a1bdabb6d54842e9f67fd1e955d91b5af647..af173b90b3802b6f767203addc52adca9e43e25f 100644
--- a/courgette/encoded_program.cc
+++ b/courgette/encoded_program.cc
@@ -700,7 +700,7 @@ struct RelocBlockPOD {
uint16 relocs[4096]; // Allow up to one relocation per byte of a 4k page.
};
-COMPILE_ASSERT(offsetof(RelocBlockPOD, relocs) == 8, reloc_block_header_size);
+static_assert(offsetof(RelocBlockPOD, relocs) == 8, "reloc block header size");
class RelocBlock {
public:
« no previous file with comments | « courgette/difference_estimator.cc ('k') | courgette/third_party/bsdiff_apply.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698