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

Unified Diff: ppapi/proxy/tcp_socket_resource_base.cc

Issue 2727093003: Fix ASAN ODR violation in ppapi/proxy in component mode (Closed)
Patch Set: simplify, no export Created 3 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/BUILD.gn ('k') | ppapi/proxy/tcp_socket_resource_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/tcp_socket_resource_base.cc
diff --git a/ppapi/proxy/tcp_socket_resource_base.cc b/ppapi/proxy/tcp_socket_resource_base.cc
index 2ec45c25f4f9d67aeb8f5e6f9bf5467e695738ee..356a43e22db0414d39b2cd14b10955bb0517b276 100644
--- a/ppapi/proxy/tcp_socket_resource_base.cc
+++ b/ppapi/proxy/tcp_socket_resource_base.cc
@@ -207,7 +207,8 @@ int32_t TCPSocketResourceBase::ReadImpl(
return PP_ERROR_INPROGRESS;
read_buffer_ = buffer;
bytes_to_read_ =
- std::min(bytes_to_read, TCPSocketResourceConstants::kMaxReadSize);
+ std::min(bytes_to_read,
+ static_cast<int32_t>(TCPSocketResourceConstants::kMaxReadSize));
read_callback_ = callback;
Call<PpapiPluginMsg_TCPSocket_ReadReply>(
« no previous file with comments | « ppapi/proxy/BUILD.gn ('k') | ppapi/proxy/tcp_socket_resource_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698