[Openmp-commits] [PATCH] D51301: [OpenMP][Fix] Ensure comparison between unsigned values.

Phabricator via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Aug 27 07:53:20 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rOMP340745: [OpenMP][Fix] Ensure comparison between unsigned values. (authored by gbercea, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D51301?vs=162675&id=162679#toc

Repository:
  rOMP OpenMP

https://reviews.llvm.org/D51301

Files:
  runtime/src/kmp_gsupport.cpp


Index: runtime/src/kmp_gsupport.cpp
===================================================================
--- runtime/src/kmp_gsupport.cpp
+++ runtime/src/kmp_gsupport.cpp
@@ -1001,7 +1001,7 @@
           KMP_DISPATCH_NEXT_ULL(&loc, gtid, NULL, (kmp_uint64 *)p_lb,          \
                                 (kmp_uint64 *)p_ub, (kmp_int64 *)&stride);     \
       if (status) {                                                            \
-        KMP_DEBUG_ASSERT((long long)stride == str);                            \
+        KMP_DEBUG_ASSERT(stride == str);                                       \
         *p_ub += (str > 0) ? 1 : -1;                                           \
       }                                                                        \
     } else {                                                                   \


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51301.162679.patch
Type: text/x-patch
Size: 848 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20180827/a0df5829/attachment.bin>


More information about the Openmp-commits mailing list