mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 22:55:23 +00:00
fix problem with 64 bit sorts, r=bienvenu, sr=sspitzer 101011 patch by shanmu@netscape.com
This commit is contained in:
parent
4ecfccb0ba
commit
cad2c8dede
@ -286,5 +286,5 @@ static int PR_CALLBACK CompareDWord (const void *v1, const void *v2, void *)
|
||||
void nsUInt32Array::QuickSort (int (* PR_CALLBACK compare) (const void *elem1, const void *elem2, void *data))
|
||||
{
|
||||
if (m_nSize > 1)
|
||||
NS_QuickSort(m_pData, m_nSize, sizeof(void*), compare ? compare : CompareDWord, nsnull);
|
||||
NS_QuickSort(m_pData, m_nSize, sizeof(PRUint32), compare ? compare : CompareDWord, nsnull);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user