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 <[email protected]>
  • Loading branch information
riftEmber committed Sep 30, 2024
1 parent 96436b5 commit 1e79196
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 @@ -4900,7 +4900,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 1e79196

Please sign in to comment.