summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-06-02 15:34:19 -0700
committerTom Sepez <tsepez@chromium.org>2015-06-02 15:34:19 -0700
commitb29338d126125d96d63817af1d80a64ea929ffae (patch)
tree114bb297f9683aa5888987b65aaa3c7d38450099
parente06b686620286dfe604693e12e70a4077625eae5 (diff)
downloadpdfium-b29338d126125d96d63817af1d80a64ea929ffae.tar.xz
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
-rw-r--r--samples/pdfium_test.cc8
1 files 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<int>(strlen(predictable_flag)));
#ifdef V8_USE_EXTERNAL_STARTUP_DATA
v8::StartupData natives;