* yeah, so it turns out that for an unsigned int, 0 - 1 doesn't equal -1.
Since there are no elements in the list, this function doesn't need to do anything anyway. So just short circuit This commit was SVN r3816.
Этот коммит содержится в:
родитель
c551d387a1
Коммит
f6b8ac67ee
@ -544,6 +544,8 @@ mca_pcm_base_data_store_pids_uniqify(pid_t **pids, size_t *len)
|
||||
{
|
||||
size_t i, j;
|
||||
|
||||
if (0 == *len) return OMPI_SUCCESS;
|
||||
|
||||
qsort(*pids, *len, sizeof(pid_t), pids_cmp);
|
||||
|
||||
for (i = 0 ; i < *len - 1 ;) {
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user