mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-19 20:16:10 +08:00
Fix CUtlSortVector::QuickSort issues on windows (#283)
This commit is contained in:
@ -177,7 +177,7 @@ void CUtlSortVector<T, LessFunc>::QuickSort( LessFunc& less, int nLower, int nUp
|
|||||||
ctx.m_pLessContext = m_pLessContext;
|
ctx.m_pLessContext = m_pLessContext;
|
||||||
ctx.m_pLessFunc = &less;
|
ctx.m_pLessFunc = &less;
|
||||||
|
|
||||||
qsort_s( Base(), Count(), sizeof(T), (QSortCompareFunc_t)&CUtlSortVector<T, LessFunc>::CompareHelper, &ctx );
|
qsort_s( this->Base(), this->Count(), sizeof(T), (QSortCompareFunc_t)&CUtlSortVector<T, LessFunc>::CompareHelper, &ctx );
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
typedef int (__cdecl *QSortCompareFunc_t)( const void *, const void *);
|
typedef int (__cdecl *QSortCompareFunc_t)( const void *, const void *);
|
||||||
|
Reference in New Issue
Block a user