Skip to content

Commit

Permalink
Fix clang warning
Browse files Browse the repository at this point in the history
  • Loading branch information
MikePopoloski committed Jan 2, 2022
1 parent ea1dbfa commit d8df979
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/binding/PatternExpressions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -705,8 +705,8 @@ Expression& StructuredAssignmentPatternExpression::forDynamicArray(
}
else {
elements.reserve(maxIndex + 1);
for (int32_t i = 0; i <= maxIndex; i++) {
auto expr = indexMap[i];
for (size_t i = 0; i <= maxIndex; i++) {
auto expr = indexMap[int32_t(i)];
ASSERT(expr);
elements.append(expr);
}
Expand Down

0 comments on commit d8df979

Please sign in to comment.