From a53c3a5236bdf4e21c86b2313a54dfb9e2b4fabe Mon Sep 17 00:00:00 2001 From: Mike Aizatsky Date: Sat, 9 Jan 2016 00:31:56 +0000 Subject: [PATCH] fixing type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257238 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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)); -- 2.34.1