Index: third_party/harfbuzz-ng/src/hb-buffer-private.hh |
diff --git a/third_party/harfbuzz-ng/src/hb-buffer-private.hh b/third_party/harfbuzz-ng/src/hb-buffer-private.hh |
index ed592f4481fd09786e2b65a44c5a2b68b58ee0cd..bca308da2f54ccf917218d462168ceafdb53ec27 100644 |
--- a/third_party/harfbuzz-ng/src/hb-buffer-private.hh |
+++ b/third_party/harfbuzz-ng/src/hb-buffer-private.hh |
@@ -134,7 +134,7 @@ struct hb_buffer_t { |
#ifndef HB_NDEBUG |
unsigned int end = start + count; |
assert (end <= 8); |
- unsigned int bits = (1<<end) - (1<<start); |
+ unsigned int bits = (1u<<end) - (1u<<start); |
assert (0 == (allocated_var_bits & bits)); |
allocated_var_bits |= bits; |
#endif |
@@ -144,7 +144,7 @@ struct hb_buffer_t { |
#ifndef HB_NDEBUG |
unsigned int end = start + count; |
assert (end <= 8); |
- unsigned int bits = (1<<end) - (1<<start); |
+ unsigned int bits = (1u<<end) - (1u<<start); |
assert (bits == (allocated_var_bits & bits)); |
allocated_var_bits &= ~bits; |
#endif |
@@ -154,7 +154,7 @@ struct hb_buffer_t { |
#ifndef HB_NDEBUG |
unsigned int end = start + count; |
assert (end <= 8); |
- unsigned int bits = (1<<end) - (1<<start); |
+ unsigned int bits = (1u<<end) - (1u<<start); |
assert (bits == (allocated_var_bits & bits)); |
#endif |
} |