diff options
Diffstat (limited to 'mfbt/RangedPtr.h')
-rw-r--r-- | mfbt/RangedPtr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mfbt/RangedPtr.h b/mfbt/RangedPtr.h index a07c1f4f8..a3d4ec103 100644 --- a/mfbt/RangedPtr.h +++ b/mfbt/RangedPtr.h @@ -212,7 +212,7 @@ public: return *this; } - T& operator[](int aIndex) const + T& operator[](ptrdiff_t aIndex) const { MOZ_ASSERT(size_t(aIndex > 0 ? aIndex : -aIndex) <= size_t(-1) / sizeof(T)); return *create(mPtr + aIndex); |