1
1

Merge pull request #1766 from hjelmn/req_fix

ompi/request: fix loop conditional
Этот коммит содержится в:
Nathan Hjelm 2016-06-07 12:11:56 -06:00
родитель 3ddf3ccbf3 5a4adb866d
Коммит 97c1643216

Просмотреть файл

@ -125,7 +125,7 @@ int ompi_request_default_wait_any(size_t count,
after_sync_wait:
/* recheck the complete status and clean up the sync primitives. Do it backward to
* return the earliest complete request to the user. */
for(i = completed-1; i >= 0; i--) {
for(i = completed-1; (i+1) > 0; i--) {
request = requests[i];
if( request->req_state == OMPI_REQUEST_INACTIVE ) {