[X2Go-Commits] [pale-moon] 150/294: Use ptrdiff_t in RangedPtr.

git-admin at x2go.org git-admin at x2go.org
Sat Apr 27 08:58:01 CEST 2019


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch upstream/28.5.0
in repository pale-moon.

commit 0d9f3396af9426f52e96f10e7e84576da349b1f4
Author: wolfbeast <mcwerewolf at wolfbeast.com>
Date:   Fri Mar 22 21:16:09 2019 +0100

    Use ptrdiff_t in RangedPtr.
---
 mfbt/RangedPtr.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mfbt/RangedPtr.h b/mfbt/RangedPtr.h
index a07c1f4..a3d4ec1 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);

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/pale-moon.git


More information about the x2go-commits mailing list