Skip to content

Commit 97c1643

Browse files
committed
Merge pull request #1766 from hjelmn/req_fix
ompi/request: fix loop conditional
2 parents 3ddf3cc + 5a4adb8 commit 97c1643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/request/req_wait.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ int ompi_request_default_wait_any(size_t count,
125125
after_sync_wait:
126126
/* recheck the complete status and clean up the sync primitives. Do it backward to
127127
* return the earliest complete request to the user. */
128-
for(i = completed-1; i >= 0; i--) {
128+
for(i = completed-1; (i+1) > 0; i--) {
129129
request = requests[i];
130130

131131
if( request->req_state == OMPI_REQUEST_INACTIVE ) {

0 commit comments

Comments
 (0)