зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
fa1acc03d2
Коммит
1141922591
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче