diff --git a/src/shared_string.hh b/src/shared_string.hh index a2c0345a..8455a31e 100644 --- a/src/shared_string.hh +++ b/src/shared_string.hh @@ -24,7 +24,7 @@ struct StringData : UseMemoryDomain private: StringData(int len) : refcount(0), length(len) {} - static constexpr uint32_t interned_flag = 1 << 31; + static constexpr uint32_t interned_flag = 1u << 31; static constexpr uint32_t refcount_mask = ~interned_flag; struct PtrPolicy