Skip to content

Commit

Permalink
llvm/lib/DebugInfo/Symbolize/DIPrinter.cpp: Fix build in -m32. 1L is …
Browse files Browse the repository at this point in the history
…incompatible to int64_t.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257237 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
chapuni committed Jan 9, 2016
1 parent d9750d3 commit bac7574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/DebugInfo/Symbolize/DIPrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void DIPrinter::printContext(std::string FileName, int64_t Line) {
return;

std::unique_ptr<MemoryBuffer> 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));

Expand Down

0 comments on commit bac7574

Please sign in to comment.