Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Unified Diff: ppapi/examples/printing/printing.cc

Issue 915403003: Enable size_t to int truncation warnings in PPAPI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ppapi_unittests win x64 Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/examples/ime/ime.cc ('k') | ppapi/examples/video_decode/video_decode.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/examples/printing/printing.cc
diff --git a/ppapi/examples/printing/printing.cc b/ppapi/examples/printing/printing.cc
index b87fc4feefc18a4e10ea750944f78580c44d3453..37a7273d8f4d51661a94bca7b98cfdbc8cc440e9 100644
--- a/ppapi/examples/printing/printing.cc
+++ b/ppapi/examples/printing/printing.cc
@@ -67,7 +67,7 @@ class MyInstance : public pp::Instance, public pp::Printing_Dev {
const PP_PrintPageNumberRange_Dev* page_ranges,
uint32_t page_range_count) {
size_t pdf_len = strlen(pdf_data);
- pp::Buffer_Dev buffer(this, pdf_len);
+ pp::Buffer_Dev buffer(this, static_cast<uint32_t>(pdf_len));
memcpy(buffer.data(), pdf_data, pdf_len);
return buffer;
« no previous file with comments | « ppapi/examples/ime/ime.cc ('k') | ppapi/examples/video_decode/video_decode.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698