Bug 739260 - fix signed/unsigned comparison warning in nsBrowserApp.cpp; r=ehsan

This commit is contained in:
Nathan Froyd 2012-03-26 11:53:15 -04:00
parent dc9799af17
commit 711b8fd781

View File

@ -205,7 +205,7 @@ int main(int argc, char* argv[])
}
char *lastSlash = strrchr(exePath, XPCOM_FILE_PATH_SEPARATOR[0]);
if (!lastSlash || (lastSlash - exePath > MAXPATHLEN - sizeof(XPCOM_DLL) - 1))
if (!lastSlash || (size_t(lastSlash - exePath) > MAXPATHLEN - sizeof(XPCOM_DLL) - 1))
return 255;
strcpy(++lastSlash, XPCOM_DLL);