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

Unified Diff: ppapi/examples/video_decode/video_decode.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/printing/printing.cc ('k') | ppapi/examples/video_decode/video_decode_dev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/examples/video_decode/video_decode.cc
diff --git a/ppapi/examples/video_decode/video_decode.cc b/ppapi/examples/video_decode/video_decode.cc
index ebfb80e03a73323418f9aa83532aab7f45a04fa4..10e0536b741fb4ff628548261935ab5f0e0592df 100644
--- a/ppapi/examples/video_decode/video_decode.cc
+++ b/ppapi/examples/video_decode/video_decode.cc
@@ -662,11 +662,12 @@ Shader MyInstance::CreateProgram(const char* vertex_shader,
// Create shader program.
shader.program = gles2_if_->CreateProgram(context_->pp_resource());
CreateShader(
- shader.program, GL_VERTEX_SHADER, vertex_shader, strlen(vertex_shader));
+ shader.program, GL_VERTEX_SHADER, vertex_shader,
+ static_cast<uint32_t>(strlen(vertex_shader)));
CreateShader(shader.program,
GL_FRAGMENT_SHADER,
fragment_shader,
- strlen(fragment_shader));
+ static_cast<int>(strlen(fragment_shader)));
gles2_if_->LinkProgram(context_->pp_resource(), shader.program);
gles2_if_->UseProgram(context_->pp_resource(), shader.program);
gles2_if_->Uniform1i(
« no previous file with comments | « ppapi/examples/printing/printing.cc ('k') | ppapi/examples/video_decode/video_decode_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698