[Openmp-commits] [PATCH] D95818: [OpenMP] Fix sign comparison warnings from GCC

Jonathan Peyton via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Feb 2 08:53:25 PST 2021


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGffca74b8b82f: [OpenMP] Fix sign comparison warnings from GCC (authored by jlpeyton).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D95818

Files:
  openmp/runtime/src/kmp_affinity.cpp


Index: openmp/runtime/src/kmp_affinity.cpp
===================================================================
--- openmp/runtime/src/kmp_affinity.cpp
+++ openmp/runtime/src/kmp_affinity.cpp
@@ -109,8 +109,8 @@
     }
     bool radix1 = true;
     bool all_same = true;
-    int id1 = addrP[0].first.labels[top_index1];
-    int id2 = addrP[0].first.labels[top_index2];
+    unsigned id1 = addrP[0].first.labels[top_index1];
+    unsigned id2 = addrP[0].first.labels[top_index2];
     int pref1 = preference[type1];
     int pref2 = preference[type2];
     for (int hwidx = 1; hwidx < nTh; ++hwidx) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95818.320805.patch
Type: text/x-patch
Size: 601 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210202/b28e199e/attachment.bin>


More information about the Openmp-commits mailing list