diff options
Diffstat (limited to 'src/sfnt/SkOTTableTypes.h')
-rw-r--r-- | src/sfnt/SkOTTableTypes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sfnt/SkOTTableTypes.h b/src/sfnt/SkOTTableTypes.h index fa76b207ea..119f17ef77 100644 --- a/src/sfnt/SkOTTableTypes.h +++ b/src/sfnt/SkOTTableTypes.h @@ -47,14 +47,14 @@ public: /** SkOTSetUSHORTBit<N>::value is an SK_OT_USHORT with the Nth BE bit set. */ template <unsigned N> struct SkOTSetUSHORTBit { - SK_COMPILE_ASSERT(N < 16, NTooBig); + static_assert(N < 16, "NTooBig"); static const uint16_t bit = 1u << N; static const SK_OT_USHORT value = SkTEndian_SwapBE16(bit); }; /** SkOTSetULONGBit<N>::value is an SK_OT_ULONG with the Nth BE bit set. */ template <unsigned N> struct SkOTSetULONGBit { - SK_COMPILE_ASSERT(N < 32, NTooBig); + static_assert(N < 32, "NTooBig"); static const uint32_t bit = 1u << N; static const SK_OT_ULONG value = SkTEndian_SwapBE32(bit); }; |