summaryrefslogtreecommitdiff
path: root/mfbt
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
commit61403dbc704b66117c231691f3b97f8c4d203f7a (patch)
tree489bcbb08e7d6f734d7e98316fd860a40c762a62 /mfbt
parent408d681652001699c5b3f79da65324967e2aeeed (diff)
downloaduxp-61403dbc704b66117c231691f3b97f8c4d203f7a.tar.gz
Use ptrdiff_t in RangedPtr.
Diffstat (limited to 'mfbt')
-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);