diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-03-22 21:16:09 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-03-22 21:16:09 +0100 |
commit | 0d9f3396af9426f52e96f10e7e84576da349b1f4 (patch) | |
tree | 489bcbb08e7d6f734d7e98316fd860a40c762a62 /mfbt/RangedPtr.h | |
parent | a4013251854b88cacf4eeb221c36e696f468ed64 (diff) | |
download | UXP-0d9f3396af9426f52e96f10e7e84576da349b1f4.tar UXP-0d9f3396af9426f52e96f10e7e84576da349b1f4.tar.gz UXP-0d9f3396af9426f52e96f10e7e84576da349b1f4.tar.lz UXP-0d9f3396af9426f52e96f10e7e84576da349b1f4.tar.xz UXP-0d9f3396af9426f52e96f10e7e84576da349b1f4.zip |
Use ptrdiff_t in RangedPtr.
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); |