Bug 1392618 Fix comparison between signed and unsigned integer expressions r?dmajor
MozReview-Commit-ID: JCfPClnoe2H
old mode 100644
new mode 100755
--- a/xpcom/build/nsWindowsDllInterceptor.h
+++ b/xpcom/build/nsWindowsDllInterceptor.h
@@ -117,30 +117,30 @@ class WindowsDllNopSpacePatcher
{
typedef uint8_t* byteptr_t;
HMODULE mModule;
// Dumb array for remembering the addresses of functions we've patched.
// (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()
: mModule(0)
, mPatchedFnsLen(0)
{}
#if defined(_M_IX86)
~WindowsDllNopSpacePatcher()
{
// 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.
AutoVirtualProtect protect(fn, 2, PAGE_EXECUTE_READWRITE);
if (!protect.Protect()) {
continue;
}