Index: Source/platform/fonts/shaping/HarfBuzzShaper.cpp |
diff --git a/Source/platform/fonts/shaping/HarfBuzzShaper.cpp b/Source/platform/fonts/shaping/HarfBuzzShaper.cpp |
index ebcc0f12d563ef1cf8394b268fdc6af2fce29f2e..1c64e12a290b3d2c490e858ef7300007279cca30 100644 |
--- a/Source/platform/fonts/shaping/HarfBuzzShaper.cpp |
+++ b/Source/platform/fonts/shaping/HarfBuzzShaper.cpp |
@@ -802,7 +802,7 @@ static const uint16_t* toUint16(const UChar* src) |
// FIXME: This relies on undefined behavior however it works on the |
// current versions of all compilers we care about and avoids making |
// a copy of the string. |
- COMPILE_ASSERT(sizeof(UChar) == sizeof(uint16_t), UChar_is_the_same_size_as_uint16_t); |
+ static_assert(sizeof(UChar) == sizeof(uint16_t), "UChar should be the same size as uint16_t"); |
return reinterpret_cast<const uint16_t*>(src); |
} |