Index: third_party/woff2/src/store_bytes.h |
diff --git a/third_party/woff2/src/store_bytes.h b/third_party/woff2/src/store_bytes.h |
index c34e43f18d53466de85f4b951f94c1325872bcdb..74b279c4277514b3faf7feec12ad6d6b5f095cf2 100644 |
--- a/third_party/woff2/src/store_bytes.h |
+++ b/third_party/woff2/src/store_bytes.h |
@@ -37,7 +37,7 @@ inline size_t Store16(uint8_t* dst, size_t offset, int x) { |
*reinterpret_cast<uint16_t*>(dst + offset) = |
((x & 0xFF) << 8) | ((x & 0xFF00) >> 8); |
#elif (defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)) |
- *reinterpret_cast<uint16_t*>(dst + offset) = reinterpret_cast<uint16_t>(x); |
+ *reinterpret_cast<uint16_t*>(dst + offset) = static_cast<uint16_t>(x); |
#else |
dst[offset] = x >> 8; |
dst[offset + 1] = x; |
@@ -58,8 +58,7 @@ inline void Store16(int val, size_t* offset, uint8_t* dst) { |
((val & 0xFF) << 8) | ((val & 0xFF00) >> 8); |
*offset += 2; |
#elif (defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)) |
- *reinterpret_cast<uint16_t*>(dst + *offset) = |
- reinterpret_cast<uint16_t>(val); |
+ *reinterpret_cast<uint16_t*>(dst + *offset) = static_cast<uint16_t>(val); |
*offset += 2; |
#else |
dst[(*offset)++] = val >> 8; |