diff --git a/mozilla/content/html/content/src/nsHTMLSelectElement.cpp b/mozilla/content/html/content/src/nsHTMLSelectElement.cpp index 8857971484e..de7e6adb417 100644 --- a/mozilla/content/html/content/src/nsHTMLSelectElement.cpp +++ b/mozilla/content/html/content/src/nsHTMLSelectElement.cpp @@ -493,13 +493,13 @@ nsHTMLSelectElement::SetLength(PRUint32 aLength) nsCOMPtr node(do_QueryInterface(element)); - for (i = curlen; i < aLength; i++) { + for (i = curlen; i < (PRInt32)aLength; i++) { nsCOMPtr tmpNode; rv = AppendChild(node, getter_AddRefs(tmpNode)); NS_ENSURE_SUCCESS(rv, rv); - if (i < (aLength - 1)) { + if (i < ((PRInt32)aLength - 1)) { nsCOMPtr newNode; rv = node->CloneNode(PR_TRUE, getter_AddRefs(newNode)); NS_ENSURE_SUCCESS(rv, rv); diff --git a/mozilla/layout/html/content/src/nsHTMLSelectElement.cpp b/mozilla/layout/html/content/src/nsHTMLSelectElement.cpp index 8857971484e..de7e6adb417 100644 --- a/mozilla/layout/html/content/src/nsHTMLSelectElement.cpp +++ b/mozilla/layout/html/content/src/nsHTMLSelectElement.cpp @@ -493,13 +493,13 @@ nsHTMLSelectElement::SetLength(PRUint32 aLength) nsCOMPtr node(do_QueryInterface(element)); - for (i = curlen; i < aLength; i++) { + for (i = curlen; i < (PRInt32)aLength; i++) { nsCOMPtr tmpNode; rv = AppendChild(node, getter_AddRefs(tmpNode)); NS_ENSURE_SUCCESS(rv, rv); - if (i < (aLength - 1)) { + if (i < ((PRInt32)aLength - 1)) { nsCOMPtr newNode; rv = node->CloneNode(PR_TRUE, getter_AddRefs(newNode)); NS_ENSURE_SUCCESS(rv, rv);