Correct some of the casting issues. By default the compilers attach an signed type
to the defines. As our internal types (job_id and co.) are unsigned that generate several errors (integer overflow in expression and comparison between signed and unsigned). Casting the defines to the correct type solve these problems. This commit was SVN r9481.
Этот коммит содержится в:
родитель
256bf70530
Коммит
2b3779cd6e
@ -58,13 +58,6 @@
|
||||
#define ORTE_NS_CMP_VPID 0x04
|
||||
#define ORTE_NS_CMP_ALL 0Xff
|
||||
|
||||
/*
|
||||
* define maximum value for id's in any field
|
||||
*/
|
||||
#define ORTE_CELLID_MAX (1 << 31)
|
||||
#define ORTE_JOBID_MAX (1 << 31)
|
||||
#define ORTE_VPID_MAX (1 << 31)
|
||||
|
||||
/*
|
||||
* general typedefs & structures
|
||||
*/
|
||||
@ -86,6 +79,13 @@ struct orte_process_name_t {
|
||||
};
|
||||
typedef struct orte_process_name_t orte_process_name_t;
|
||||
|
||||
/*
|
||||
* define maximum value for id's in any field
|
||||
*/
|
||||
#define ORTE_CELLID_MAX ((orte_cellid_t)(1 << 31))
|
||||
#define ORTE_JOBID_MAX ((orte_jobid_t)(1 << 31))
|
||||
#define ORTE_VPID_MAX ((orte_vpid_t)(1 << 31))
|
||||
|
||||
extern orte_process_name_t orte_name_all;
|
||||
#define ORTE_NAME_ALL &orte_name_all
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user