From a6400478803ed338e61980cea239b74c5a59b9c0 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 3 Nov 2015 14:23:38 -0500 Subject: 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 . --- core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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::max()); EXPECT_EQ("", parser.ReadHexString()); // Check string still parses when set to 0. -- cgit v1.2.3