1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

fixing type.

llvm-svn: 257238
This commit is contained in:
Mike Aizatsky 2016-01-09 00:31:56 +00:00
parent 8100f735c4
commit 6e3d95bf83

View File

@ -36,7 +36,8 @@ void DIPrinter::printContext(std::string FileName, int64_t Line) {
return;
std::unique_ptr<MemoryBuffer> Buf = std::move(BufOrErr.get());
int64_t FirstLine = std::max((int64_t)1, Line - PrintSourceContext / 2);
int64_t FirstLine =
std::max(static_cast<int64_t>(1), Line - PrintSourceContext / 2);
int64_t LastLine = FirstLine + PrintSourceContext;
size_t MaxLineNumberWidth = std::ceil(std::log10(LastLine));