poppler/Parser.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 8dfe3fb37ec01e35eb22a0932fe708bc9b78cb4f Author: Albert Astals Cid <[email protected]> Date: Wed May 30 17:09:16 2018 +0200 LONG_LONG_MAX -> LLONG_MAX that's the name the standard uses diff --git a/poppler/Parser.cc b/poppler/Parser.cc index d1ddcaa2..39c9a967 100644 --- a/poppler/Parser.cc +++ b/poppler/Parser.cc @@ -238,7 +238,7 @@ Stream *Parser::makeStream(Object &&dict, Guchar *fileKey, if (unlikely(length < 0)) { return nullptr; } - if (unlikely(pos > LONG_LONG_MAX - length)) { + if (unlikely(pos > LLONG_MAX - length)) { return nullptr; } lexer->setPos(pos + length); @@ -261,7 +261,7 @@ Stream *Parser::makeStream(Object &&dict, Guchar *fileKey, // When building the xref we can't use it so use this // kludge for broken PDF files: just add 5k to the length, and // hope its enough - if (length < LONG_LONG_MAX - 5000) + if (length < LLONG_MAX - 5000) length += 5000; } } _______________________________________________ poppler mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/poppler
