From d47ae364a9217411e0dbf0fd7a3531da43307e2a Mon Sep 17 00:00:00 2001 From: Jared Roesch Date: Thu, 10 Sep 2020 02:05:48 -0700 Subject: [PATCH] Fix --- src/ir/diagnostic.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ir/diagnostic.cc b/src/ir/diagnostic.cc index 5103cdc5cb07c..916dbece87c14 100644 --- a/src/ir/diagnostic.cc +++ b/src/ir/diagnostic.cc @@ -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(i) >= span->column && static_cast(i) < span->end_column) { marker << "^"; } else { marker << " ";