From: NAKAMURA Takumi Date: Sat, 9 Jan 2016 00:28:50 +0000 (+0000) Subject: llvm/lib/DebugInfo/Symbolize/DIPrinter.cpp: Fix build in -m32. 1L is incompatible... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bac757414bebf44363dd39a7ca4b1c4b63f19cd6;p=oota-llvm.git llvm/lib/DebugInfo/Symbolize/DIPrinter.cpp: Fix build in -m32. 1L is incompatible to int64_t. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257237 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/DebugInfo/Symbolize/DIPrinter.cpp b/lib/DebugInfo/Symbolize/DIPrinter.cpp index 7d7ace0759e..0d4eb5c167a 100644 --- a/lib/DebugInfo/Symbolize/DIPrinter.cpp +++ b/lib/DebugInfo/Symbolize/DIPrinter.cpp @@ -36,7 +36,7 @@ void DIPrinter::printContext(std::string FileName, int64_t Line) { return; std::unique_ptr Buf = std::move(BufOrErr.get()); - int64_t FirstLine = std::max(1l, Line - PrintSourceContext / 2); + int64_t FirstLine = std::max((int64_t)1, Line - PrintSourceContext / 2); int64_t LastLine = FirstLine + PrintSourceContext; size_t MaxLineNumberWidth = std::ceil(std::log10(LastLine));