summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2015-11-03 14:23:38 -0500
committerDan Sinclair <dsinclair@chromium.org>2015-11-03 14:23:38 -0500
commita6400478803ed338e61980cea239b74c5a59b9c0 (patch)
tree43444b18e63538043ed90da249dd81dda93df2d5 /core
parent71ad9a0028a183605fba734c48b4756d6caa7754 (diff)
downloadpdfium-a6400478803ed338e61980cea239b74c5a59b9c0.tar.xz
Use std::numeric_limits::max() to put in the large position value.
This size is different on Windows vs Mac and Linux. Need to use numeric_limits instead of a hard coded value. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1414793010 .
Diffstat (limited to 'core')
-rw-r--r--core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp
index 8063d6fd9c..827d1cec28 100644
--- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp
+++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp
@@ -105,7 +105,7 @@ TEST(fpdf_parser_parser, ReadHexString) {
parser.RestorePos(-1);
EXPECT_EQ("", parser.ReadHexString());
- parser.RestorePos(0xfffffffffff);
+ parser.RestorePos(std::numeric_limits<FX_FILESIZE>::max());
EXPECT_EQ("", parser.ReadHexString());
// Check string still parses when set to 0.