mirror of
https://github.com/roytam1/basilisk55.git
synced 2026-05-26 15:02:46 +00:00
import from UXP: Use ptrdiff_t in RangedPtr. (a4dd5cc0)
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user