Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jroesch committed Sep 10, 2020
1 parent db91ea2 commit d47ae36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ir/diagnostic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ void ReportAt(const DiagnosticContext& context, std::ostream& out, const Span& s

std::stringstream marker;
for (size_t i = 1; i <= line_text.size(); i++) {
if (i >= span->column && i < span->end_column) {
if (static_cast<int>(i) >= span->column && static_cast<int>(i) < span->end_column) {
marker << "^";
} else {
marker << " ";
Expand Down

0 comments on commit d47ae36

Please sign in to comment.