summaryrefslogtreecommitdiff
path: root/mfbt/RangedPtr.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-03-22 21:16:09 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-03-22 21:16:09 +0100
commit0d9f3396af9426f52e96f10e7e84576da349b1f4 (patch)
tree489bcbb08e7d6f734d7e98316fd860a40c762a62 /mfbt/RangedPtr.h
parenta4013251854b88cacf4eeb221c36e696f468ed64 (diff)
downloaduxp-0d9f3396af9426f52e96f10e7e84576da349b1f4.tar.gz
Use ptrdiff_t in RangedPtr.
Diffstat (limited to 'mfbt/RangedPtr.h')
-rw-r--r--mfbt/RangedPtr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mfbt/RangedPtr.h b/mfbt/RangedPtr.h
index a07c1f4f85..a3d4ec1032 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);