Change the result of the compare function as we want the ptl's ordered in increased order of the priority.
This commit was SVN r1209.
Этот коммит содержится в:
родитель
3c866dde73
Коммит
bcbb4477bc
@ -67,11 +67,11 @@ static int ptl_exclusivity_compare(const void* arg1, const void* arg2)
|
||||
mca_ptl_t* ptl1 = *(struct mca_ptl_t**)arg1;
|
||||
mca_ptl_t* ptl2 = *(struct mca_ptl_t**)arg2;
|
||||
if( ptl1->ptl_exclusivity > ptl2->ptl_exclusivity )
|
||||
return 1;
|
||||
return -1;
|
||||
else if (ptl1->ptl_exclusivity == ptl2->ptl_exclusivity )
|
||||
return 0;
|
||||
else
|
||||
return -1;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user