1
1

Fix compiler warning: event is unsigned; it can't be negative

cmr=v1.7.4:reviewer=rhc

This commit was SVN r29684.
Этот коммит содержится в:
Jeff Squyres 2013-11-13 15:35:37 +00:00
родитель 0749919127
Коммит f1bff698a4

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

@ -866,7 +866,7 @@ int opal_cr_user_inc_register_callback(opal_cr_user_inc_callback_event_t event,
opal_cr_user_inc_callback_fn_t function,
opal_cr_user_inc_callback_fn_t *prev_function)
{
if( event < 0 || event >= OMPI_CR_INC_MAX ) {
if (event >= OMPI_CR_INC_MAX) {
return OPAL_ERROR;
}
@ -888,7 +888,7 @@ int trigger_user_inc_callback(opal_cr_user_inc_callback_event_t event,
return OPAL_SUCCESS;
}
if( event < 0 || event >= OMPI_CR_INC_MAX ) {
if (event >= OMPI_CR_INC_MAX) {
return OPAL_ERROR;
}