mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
Use ptrdiff_t in RangedPtr.
This commit is contained in:
parent
0363b2d358
commit
a4dd5cc088
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue