diff --git a/extensions/spellcheck/src/mozInlineSpellWordUtil.h b/extensions/spellcheck/src/mozInlineSpellWordUtil.h index b28d24ae5f0f..8717891afe98 100644 --- a/extensions/spellcheck/src/mozInlineSpellWordUtil.h +++ b/extensions/spellcheck/src/mozInlineSpellWordUtil.h @@ -125,14 +125,13 @@ private: // A list of the "real words" in mSoftText, ordered by mSoftTextOffset struct RealWord { int32_t mSoftTextOffset; - uint32_t mLength : 31; - uint32_t mCheckableWord : 1; + int32_t mLength : 31; + int32_t mCheckableWord : 1; - RealWord(int32_t aOffset, uint32_t aLength, bool aCheckable) + RealWord(int32_t aOffset, int32_t aLength, bool aCheckable) : mSoftTextOffset(aOffset), mLength(aLength), mCheckableWord(aCheckable) { static_assert(sizeof(RealWord) == 8, "RealWord should be limited to 8 bytes"); - MOZ_ASSERT(aLength < INT32_MAX, "Word length is too large to fit in the bitfield"); } int32_t EndOffset() const { return mSoftTextOffset + mLength; }