We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfcf8d1 commit 1292aebCopy full SHA for 1292aeb
flang/lib/Semantics/check-omp-structure.cpp
@@ -3444,7 +3444,8 @@ void OmpStructureChecker::Enter(const parser::OmpClause::If &x) {
3444
first != dirLeafs.end()) {
3445
// A leaf can only appear once in a compound directive, so if `part`
3446
// is a subsequence of `dir`, it must start here.
3447
- long firstPos{std::distance(dirLeafs.begin(), first)};
+ size_t firstPos{
3448
+ static_cast<size_t>(std::distance(dirLeafs.begin(), first))};
3449
llvm::ArrayRef<Directive> subSeq{
3450
first, std::min<size_t>(dirSize - firstPos, partSize)};
3451
return subSeq == partLeafs;
0 commit comments