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

Unified Diff: ppapi/proxy/ppb_graphics_3d_proxy.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: 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
Index: ppapi/proxy/ppb_graphics_3d_proxy.cc
diff --git a/ppapi/proxy/ppb_graphics_3d_proxy.cc b/ppapi/proxy/ppb_graphics_3d_proxy.cc
index 7cd2b88bcdb27155f68e2921bd21f7a9b4a5bf68..6ccf23d1e160b56fd0fd0b012b85c11115b7af43 100644
--- a/ppapi/proxy/ppb_graphics_3d_proxy.cc
+++ b/ppapi/proxy/ppb_graphics_3d_proxy.cc
@@ -315,7 +315,7 @@ void PPB_Graphics3D_Proxy::OnMsgCreateTransferBuffer(
DCHECK(backing && backing->shared_memory());
transfer_buffer->set_shmem(
TransportSHMHandle(dispatcher(), backing->shared_memory()->handle()),
- buffer->size());
+ static_cast<uint32_t>(buffer->size()));
} else {
*id = -1;
}

Powered by Google App Engine
This is Rietveld 408576698