forked from OSchip/llvm-project
[OpenMP] libomp: fix warning on comparison of integer expressions of different signedness
Replaced macro with global variable of correspondent type. Differential Revision: https://reviews.llvm.org/D111562
This commit is contained in:
parent
b44eac1b85
commit
5e58b63b28
|
@ -302,8 +302,8 @@ void __kmp_check_stksize(size_t *val) {
|
|||
// if system stack size is too big then limit the size for worker threads
|
||||
if (*val > KMP_DEFAULT_STKSIZE * 16) // just a heuristics...
|
||||
*val = KMP_DEFAULT_STKSIZE * 16;
|
||||
if (*val < KMP_MIN_STKSIZE)
|
||||
*val = KMP_MIN_STKSIZE;
|
||||
if (*val < __kmp_sys_min_stksize)
|
||||
*val = __kmp_sys_min_stksize;
|
||||
if (*val > KMP_MAX_STKSIZE)
|
||||
*val = KMP_MAX_STKSIZE; // dead code currently, but may work in future
|
||||
#if KMP_OS_DARWIN
|
||||
|
|
Loading…
Reference in New Issue