Skip to content
Snippets Groups Projects
Commit bdc3f9b1 authored by Makoto Kato's avatar Makoto Kato
Browse files

Bug 738581 - fix various warning on mozilla/intl. r=smontagu

parent 34453514
No related branches found
No related tags found
No related merge requests found
......@@ -647,7 +647,7 @@ nsWin32Locale::GetPlatformLocale(const nsAString& locale, LCID* winLCID)
char locale_string[9] = {'\0','\0','\0','\0','\0','\0','\0','\0','\0'};
char* language_code;
char* country_code;
int i,j;
size_t i, j;
// parse the locale
const PRUnichar* data;
......@@ -700,7 +700,7 @@ nsWin32Locale::GetXPLocale(LCID winLCID, nsAString& locale)
}
DWORD lang_id, sublang_id;
int i,j;
size_t i, j;
lang_id = PRIMARYLANGID(LANGIDFROMLCID(winLCID));
sublang_id = SUBLANGID(LANGIDFROMLCID(winLCID));
......@@ -754,7 +754,7 @@ nsWin32Locale::GetXPLocale(LCID winLCID, nsAString& locale)
void
test_internal_tables(void)
{
int i;
size_t i;
for(i=1;i<LENGTH_MAPPING_LIST;i++) {
if (strcmp(dbg_list[i-1].iso_code,dbg_list[i].iso_code)>=0)
......
......@@ -255,7 +255,7 @@ nsConverterInputStream::Fill(nsresult * aErrorCode)
"Whoa. The converter should have returned NS_OK_UDEC_MOREINPUT before this point!");
} while (mReplacementChar &&
NS_FAILED(*aErrorCode) &&
mUnicharData->GetBufferSize() > mUnicharDataLength);
PRUint32(mUnicharData->GetBufferSize()) > mUnicharDataLength);
mLeftOverBytes = mByteData->GetLength() - srcConsumed;
......
......@@ -49,7 +49,7 @@
inline bool WillOverrun(PRUnichar* aDest, PRUnichar* aDestEnd, PRUint32 aLength)
{
NS_ASSERTION(aDest <= aDestEnd, "Pointer overrun even before check");
return ((aDestEnd - aDest) < aLength);
return (PRUint32(aDestEnd - aDest) < aLength);
}
#define CHECK_OVERRUN(dest, destEnd, length) (WillOverrun(dest, destEnd, length))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment