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

Unified Diff: ppapi/shared_impl/array_writer.h

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/proxy/websocket_resource_unittest.cc ('k') | ppapi/shared_impl/flash_clipboard_format_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/array_writer.h
diff --git a/ppapi/shared_impl/array_writer.h b/ppapi/shared_impl/array_writer.h
index fce10e4fc73f2c9c79848d225201f7a68a5655fe..1d2608adc0441bc1d1b1086879e1d82a78671372 100644
--- a/ppapi/shared_impl/array_writer.h
+++ b/ppapi/shared_impl/array_writer.h
@@ -74,7 +74,8 @@ class PPAPI_SHARED_EXPORT ArrayWriter {
// comment of StoreArray() for detail.
template <typename T>
bool StoreVector(const std::vector<T>& input) {
- return StoreArray(input.size() ? &input[0] : NULL, input.size());
+ return StoreArray(input.size() ? &input[0] : NULL,
+ static_cast<uint32_t>(input.size()));
}
// Stores the given vector of resources as PP_Resources to the output vector,
« no previous file with comments | « ppapi/proxy/websocket_resource_unittest.cc ('k') | ppapi/shared_impl/flash_clipboard_format_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698