nng: fix warning: comparison of integer expressions of different signedness
This commit is contained in:
parent
a7b31a6f49
commit
3d2d6cc033
1 changed files with 1 additions and 1 deletions
|
@ -379,7 +379,7 @@ nni_plat_init(int (*helper)(void))
|
||||||
struct rlimit rl;
|
struct rlimit rl;
|
||||||
if ((getrlimit(RLIMIT_STACK, &rl) == 0) &&
|
if ((getrlimit(RLIMIT_STACK, &rl) == 0) &&
|
||||||
(rl.rlim_cur != RLIM_INFINITY) &&
|
(rl.rlim_cur != RLIM_INFINITY) &&
|
||||||
(rl.rlim_cur >= PTHREAD_STACK_MIN) &&
|
(rl.rlim_cur >= (rlim_t)PTHREAD_STACK_MIN) &&
|
||||||
(pthread_attr_setstacksize(&nni_thrattr, rl.rlim_cur) != 0)) {
|
(pthread_attr_setstacksize(&nni_thrattr, rl.rlim_cur) != 0)) {
|
||||||
pthread_mutex_unlock(&nni_plat_init_lock);
|
pthread_mutex_unlock(&nni_plat_init_lock);
|
||||||
pthread_mutexattr_destroy(&nni_mxattr);
|
pthread_mutexattr_destroy(&nni_mxattr);
|
||||||
|
|
Loading…
Reference in a new issue