From b29338d126125d96d63817af1d80a64ea929ffae Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 2 Jun 2015 15:34:19 -0700 Subject: Fix windows compile: fix size_t vs. int mismatch As indicated by: http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/63417/steps/compile%20%28with%20patch%29/logs/stdio R=thestig@chromium.org TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/1160293003 --- samples/pdfium_test.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc index d5bf3c0f16..da33f80035 100644 --- a/samples/pdfium_test.cc +++ b/samples/pdfium_test.cc @@ -582,9 +582,11 @@ int main(int argc, const char* argv[]) { v8::Platform* platform = v8::platform::CreateDefaultPlatform(); v8::V8::InitializePlatform(platform); v8::V8::Initialize(); - // By enabling predicatble mode, V8 won't post any background tasks. - const char predictable_flag[] = "--predictable"; - v8::V8::SetFlagsFromString(predictable_flag, strlen(predictable_flag)); + + // By enabling predictable mode, V8 won't post any background tasks. + static const char predictable_flag[] = "--predictable"; + v8::V8::SetFlagsFromString(predictable_flag, + static_cast(strlen(predictable_flag))); #ifdef V8_USE_EXTERNAL_STARTUP_DATA v8::StartupData natives; -- cgit v1.2.3