[Openmp-commits] [openmp] r340745 - [OpenMP][Fix] Ensure comparison between unsigned values.
Gheorghe-Teodor Bercea via Openmp-commits
openmp-commits at lists.llvm.org
Mon Aug 27 07:52:21 PDT 2018
Author: gbercea
Date: Mon Aug 27 07:52:20 2018
New Revision: 340745
URL: http://llvm.org/viewvc/llvm-project?rev=340745&view=rev
Log:
[OpenMP][Fix] Ensure comparison between unsigned values.
Summary: Ensure the values being compared are both unsigned.
Reviewers: ABataev, Hahnfeld, caomhin, grokos, AndreyChurbanov
Reviewed By: AndreyChurbanov
Subscribers: AndreyChurbanov, guansong, openmp-commits
Differential Revision: https://reviews.llvm.org/D51301
Modified:
openmp/trunk/runtime/src/kmp_gsupport.cpp
Modified: openmp/trunk/runtime/src/kmp_gsupport.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_gsupport.cpp?rev=340745&r1=340744&r2=340745&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_gsupport.cpp (original)
+++ openmp/trunk/runtime/src/kmp_gsupport.cpp Mon Aug 27 07:52:20 2018
@@ -1001,7 +1001,7 @@ LOOP_NEXT_ULL(KMP_EXPAND_NAME(KMP_API_NA
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 { \
More information about the Openmp-commits
mailing list