зеркало из https://github.com/mozilla/pjs.git
Bug 562501 - comparison between signed and unsigned integer expressions in txNodeSorter::sortNodeSet, r=sicking
This commit is contained in:
Родитель
83c77802ea
Коммит
ba7c07c685
|
@ -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();
|
||||
|
|
|
@ -86,7 +86,7 @@ private:
|
|||
static PRBool calcSortValue(TxObject*& aSortValue, SortKey* aKey,
|
||||
SortData* aSortData, PRUint32 aNodeIndex);
|
||||
txList mSortKeys;
|
||||
int mNKeys;
|
||||
unsigned int mNKeys;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче