Bug 399853 - Fix signed/unsigned mismatch warnings. r+sr=tor,a1.9=beltzner

This commit is contained in:
longsonr@gmail.com 2008-03-18 06:17:08 -07:00
parent a2bc45835d
commit 7a74a4e3a2
3 changed files with 3 additions and 3 deletions

View File

@ -156,7 +156,7 @@ GetUnitTypeForString(const char* unitStr)
nsCOMPtr<nsIAtom> unitAtom = do_GetAtom(unitStr);
for (int i = 0 ; i < NS_ARRAY_LENGTH(unitMap) ; i++) {
for (PRUint32 i = 0 ; i < NS_ARRAY_LENGTH(unitMap) ; i++) {
if (unitMap[i] && *unitMap[i] == unitAtom) {
return i;
}

View File

@ -117,7 +117,7 @@ GetUnitTypeForString(const char* unitStr)
nsCOMPtr<nsIAtom> unitAtom = do_GetAtom(unitStr);
for (int i = 0 ; i < NS_ARRAY_LENGTH(unitMap) ; i++) {
for (PRUint32 i = 0 ; i < NS_ARRAY_LENGTH(unitMap) ; i++) {
if (unitMap[i] && *unitMap[i] == unitAtom) {
return i;
}

View File

@ -124,7 +124,7 @@ nsSVGTransformList::GetConsolidationMatrix(nsIDOMSVGTransformList *transforms)
nsCOMPtr<nsIDOMSVGMatrix> temp1, temp2;
for (PRInt32 i = 0; i < count; ++i) {
for (PRUint32 i = 0; i < count; ++i) {
transforms->GetItem(i, getter_AddRefs(transform));
transform->GetMatrix(getter_AddRefs(temp1));
conmatrix->Multiply(temp1, getter_AddRefs(temp2));