[Openmp-commits] [PATCH] D111562: [OpenMP] libomp: fix warning on comparison of integer expressions of different signedness

Andrey Churbanov via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Oct 13 10:12:03 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG5e58b63b2869: [OpenMP] libomp: fix warning on comparison of integer expressions of different… (authored by AndreyChurbanov).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111562/new/

https://reviews.llvm.org/D111562

Files:
  openmp/runtime/src/kmp_settings.cpp


Index: openmp/runtime/src/kmp_settings.cpp
===================================================================
--- openmp/runtime/src/kmp_settings.cpp
+++ openmp/runtime/src/kmp_settings.cpp
@@ -302,8 +302,8 @@
   // 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111562.379451.patch
Type: text/x-patch
Size: 648 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20211013/b3462ffc/attachment-0001.bin>


More information about the Openmp-commits mailing list