Skip to content

Commit

Permalink
Fix formal count signedness mismatch
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Rift <anna.rift@hpe.com>
  • Loading branch information
riftEmber committed Sep 27, 2024
1 parent 59dc489 commit 9df2316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/lib/resolution/Resolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4846,7 +4846,7 @@ bool Resolver::enter(const IndexableLoop* loop) {
auto& MSC = iterandRE.mostSpecific();
auto fn = MSC.only() ? MSC.only().fn() : nullptr;
if (fn && fn->isIterator()) {
const unsigned int tagPos =
const int tagPos =
fn->isMethod() ? 1 : 0; // offset for 'this'
if (fn->numFormals() > tagPos &&
fn->formalType(tagPos).type() ==
Expand Down

0 comments on commit 9df2316

Please sign in to comment.