Bug 1392618 Fix comparison between signed and unsigned integer expressions r=dmajor

MozReview-Commit-ID: JCfPClnoe2H

--HG--
extra : rebase_source : c955d489024ae2cff82304ec4d0d9aca5dcb9ee0
This commit is contained in:
Tom Ritter 2017-08-22 08:57:35 -05:00
parent 8760e71649
commit 9206f7061c

4
xpcom/build/nsWindowsDllInterceptor.h Normal file → Executable file
View File

@ -122,7 +122,7 @@ class WindowsDllNopSpacePatcher
// (This should be nsTArray, but non-XPCOM code uses this class.)
static const size_t maxPatchedFns = 16;
byteptr_t mPatchedFns[maxPatchedFns];
int mPatchedFnsLen;
size_t mPatchedFnsLen;
public:
WindowsDllNopSpacePatcher()
@ -135,7 +135,7 @@ public:
{
// Restore the mov edi, edi to the beginning of each function we patched.
for (int i = 0; i < mPatchedFnsLen; i++) {
for (size_t i = 0; i < mPatchedFnsLen; i++) {
byteptr_t fn = mPatchedFns[i];
// Ensure we can write to the code.