[flang-commits] [flang] ff0ca64 - [flang] Use unsigned to avoid comparison warning
Valentin Clement via flang-commits
flang-commits at lists.llvm.org
Tue Feb 28 05:27:18 PST 2023
Author: Valentin Clement
Date: 2023-02-28T14:27:05+01:00
New Revision: ff0ca64ea2c96ee2c3653770a9832c18ac4af998
URL: https://github.com/llvm/llvm-project/commit/ff0ca64ea2c96ee2c3653770a9832c18ac4af998
DIFF: https://github.com/llvm/llvm-project/commit/ff0ca64ea2c96ee2c3653770a9832c18ac4af998.diff
LOG: [flang] Use unsigned to avoid comparison warning
Added:
Modified:
flang/runtime/pointer.cpp
Removed:
################################################################################
diff --git a/flang/runtime/pointer.cpp b/flang/runtime/pointer.cpp
index 5e1233386c60..7305b1e54223 100644
--- a/flang/runtime/pointer.cpp
+++ b/flang/runtime/pointer.cpp
@@ -105,7 +105,7 @@ void RTNAME(PointerAssociateRemapping)(Descriptor &pointer,
std::size_t boundsRank{
static_cast<std::size_t>(bounds.GetDimension(1).Extent())};
pointer.raw().rank = boundsRank;
- for (int j{0}; j < boundsRank; ++j) {
+ for (unsigned j{0}; j < boundsRank; ++j) {
auto &dim{pointer.GetDimension(j)};
dim.SetBounds(GetInt64(bounds.ZeroBasedIndexedElement<const char>(2 * j),
boundElementBytes, terminator),
More information about the flang-commits
mailing list