Bug 579318 - warning: comparison between signed and unsigned integer expressions in nsContentUtils::ParseIntMarginValue() and nsIContentUtils::FindInternalContentViewer() r=Olli.Pettay a=dbaron

--HG--
extra : rebase_source : 889a1fa61e2a4c9fd42492518bd660d8b1bb8a83
This commit is contained in:
timeless 2010-08-06 13:04:32 +02:00
Родитель fa1acc03d2
Коммит 1141922591
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -1014,7 +1014,7 @@ nsContentUtils::ParseIntMarginValue(const nsAString& aString, nsIntMargin& resul
PRInt32 start = 0, end = 0;
for (int count = 0; count < 4; count++) {
if (end >= marginStr.Length())
if ((PRUint32)end >= marginStr.Length())
return PR_FALSE;
// top, right, bottom, left
@ -6318,7 +6318,7 @@ nsIContentUtils::FindInternalContentViewer(const char* aType,
#ifdef MOZ_MEDIA
#ifdef MOZ_OGG
if (nsHTMLMediaElement::IsOggEnabled()) {
for (int i = 0; i < NS_ARRAY_LENGTH(nsHTMLMediaElement::gOggTypes); ++i) {
for (unsigned int i = 0; i < NS_ARRAY_LENGTH(nsHTMLMediaElement::gOggTypes); ++i) {
const char* type = nsHTMLMediaElement::gOggTypes[i];
if (!strcmp(aType, type)) {
docFactory = do_GetService("@mozilla.org/content/document-loader-factory;1");
@ -6333,7 +6333,7 @@ nsIContentUtils::FindInternalContentViewer(const char* aType,
#ifdef MOZ_WEBM
if (nsHTMLMediaElement::IsWebMEnabled()) {
for (int i = 0; i < NS_ARRAY_LENGTH(nsHTMLMediaElement::gWebMTypes); ++i) {
for (unsigned int i = 0; i < NS_ARRAY_LENGTH(nsHTMLMediaElement::gWebMTypes); ++i) {
const char* type = nsHTMLMediaElement::gWebMTypes[i];
if (!strcmp(aType, type)) {
docFactory = do_GetService("@mozilla.org/content/document-loader-factory;1");