Cast in order to return the expected bool.
This commit was SVN r11992.
Этот коммит содержится в:
родитель
b27f1814c6
Коммит
3fc0e969b7
@ -161,13 +161,13 @@ static inline void ompi_win_remove_mode(ompi_win_t *win,
|
||||
/* already in an access epoch */
|
||||
static inline bool ompi_win_access_epoch(ompi_win_t *win) {
|
||||
int16_t mode = ompi_win_get_mode(win);
|
||||
return (OMPI_WIN_ACCESS_EPOCH & mode);
|
||||
return (0 != (OMPI_WIN_ACCESS_EPOCH & mode) ? true : false);
|
||||
}
|
||||
|
||||
/* already in an exposure epoch */
|
||||
static inline bool ompi_win_exposure_epoch(ompi_win_t *win) {
|
||||
int16_t mode = ompi_win_get_mode(win);
|
||||
return (OMPI_WIN_EXPOSE_EPOCH & mode);
|
||||
return (0 != (OMPI_WIN_EXPOSE_EPOCH & mode) ? true : false);
|
||||
}
|
||||
|
||||
/* we're either already in an access epoch or can easily start one
|
||||
@ -175,7 +175,7 @@ static inline bool ompi_win_exposure_epoch(ompi_win_t *win) {
|
||||
communication call. */
|
||||
static inline bool ompi_win_comm_allowed(ompi_win_t *win) {
|
||||
int16_t mode = ompi_win_get_mode(win);
|
||||
return (OMPI_WIN_ACCESS_EPOCH & mode || OMPI_WIN_FENCE & mode);
|
||||
return (0 != (OMPI_WIN_ACCESS_EPOCH & mode || OMPI_WIN_FENCE & mode) ? true : false);
|
||||
}
|
||||
|
||||
#if defined(c_plusplus) || defined(__cplusplus)
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user