From ba7c07c68569eb234d4b3ae9794a976e04a74062 Mon Sep 17 00:00:00 2001 From: "timeless@mozdev.org" Date: Wed, 28 Apr 2010 17:12:00 -0700 Subject: [PATCH] Bug 562501 - comparison between signed and unsigned integer expressions in txNodeSorter::sortNodeSet, r=sicking --- content/xslt/src/xslt/txNodeSorter.cpp | 2 +- content/xslt/src/xslt/txNodeSorter.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/xslt/src/xslt/txNodeSorter.cpp b/content/xslt/src/xslt/txNodeSorter.cpp index 7530cb9fade..2fea529a940 100644 --- a/content/xslt/src/xslt/txNodeSorter.cpp +++ b/content/xslt/src/xslt/txNodeSorter.cpp @@ -253,7 +253,7 @@ txNodeSorter::compareNodes(const void* aIndexA, const void* aIndexB, TxObject** sortValuesB = sortData->mSortValues + indexB * sortData->mNodeSorter->mNKeys; - int i; + unsigned int i; // Step through each key until a difference is found for (i = 0; i < sortData->mNodeSorter->mNKeys; ++i) { SortKey* key = (SortKey*)iter.next(); diff --git a/content/xslt/src/xslt/txNodeSorter.h b/content/xslt/src/xslt/txNodeSorter.h index 5bdb86ca472..449544578b7 100644 --- a/content/xslt/src/xslt/txNodeSorter.h +++ b/content/xslt/src/xslt/txNodeSorter.h @@ -86,7 +86,7 @@ private: static PRBool calcSortValue(TxObject*& aSortValue, SortKey* aKey, SortData* aSortData, PRUint32 aNodeIndex); txList mSortKeys; - int mNKeys; + unsigned int mNKeys; }; #endif