From 6e3d95bf83c8d680c05d674b1d5b3319f5d3c793 Mon Sep 17 00:00:00 2001 From: Mike Aizatsky Date: Sat, 9 Jan 2016 00:31:56 +0000 Subject: [PATCH] fixing type. llvm-svn: 257238 --- lib/DebugInfo/Symbolize/DIPrinter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/DebugInfo/Symbolize/DIPrinter.cpp b/lib/DebugInfo/Symbolize/DIPrinter.cpp index 0d4eb5c167a..a9dee7abeed 100644 --- a/lib/DebugInfo/Symbolize/DIPrinter.cpp +++ b/lib/DebugInfo/Symbolize/DIPrinter.cpp @@ -36,7 +36,8 @@ void DIPrinter::printContext(std::string FileName, int64_t Line) { return; std::unique_ptr Buf = std::move(BufOrErr.get()); - int64_t FirstLine = std::max((int64_t)1, Line - PrintSourceContext / 2); + int64_t FirstLine = + std::max(static_cast(1), Line - PrintSourceContext / 2); int64_t LastLine = FirstLine + PrintSourceContext; size_t MaxLineNumberWidth = std::ceil(std::log10(LastLine));