| Index: base/strings/safe_sprintf.cc
|
| diff --git a/base/strings/safe_sprintf.cc b/base/strings/safe_sprintf.cc
|
| index 6aa1cbe1a693ebfdf4313d2ef672d48fe07b7270..a08e3a182168e9c847e8b50842f9d9c88c7f8353 100644
|
| --- a/base/strings/safe_sprintf.cc
|
| +++ b/base/strings/safe_sprintf.cc
|
| @@ -72,7 +72,7 @@ const char kDownCaseHexDigits[] = "0123456789abcdef";
|
| #if defined(NDEBUG)
|
| // We would like to define kSSizeMax as std::numeric_limits<ssize_t>::max(),
|
| // but C++ doesn't allow us to do that for constants. Instead, we have to
|
| -// use careful casting and shifting. We later use a COMPILE_ASSERT to
|
| +// use careful casting and shifting. We later use a static_assert to
|
| // verify that this worked correctly.
|
| namespace {
|
| const size_t kSSizeMax = kSSizeMaxConst;
|
| @@ -119,9 +119,9 @@ class Buffer {
|
| // does.
|
| #if __cplusplus >= 201103 && !defined(OS_ANDROID) && !defined(OS_MACOSX) && \
|
| !defined(OS_IOS) && !(defined(__clang__) && defined(OS_WIN))
|
| - COMPILE_ASSERT(kSSizeMaxConst == \
|
| - static_cast<size_t>(std::numeric_limits<ssize_t>::max()),
|
| - kSSizeMax_is_the_max_value_of_an_ssize_t);
|
| + static_assert(kSSizeMaxConst ==
|
| + static_cast<size_t>(std::numeric_limits<ssize_t>::max()),
|
| + "kSSizeMax_is_the_max_value_of_an_ssize_t");
|
| #endif
|
| DEBUG_CHECK(size > 0);
|
| DEBUG_CHECK(size <= kSSizeMax);
|
|
|