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

Unified Diff: mojo/public/bindings/js/core.cc

Issue 64623003: Fix win64 build failure on size truncation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 1 month 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 | « no previous file | mojo/public/tests/bindings_connector_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/bindings/js/core.cc
===================================================================
--- mojo/public/bindings/js/core.cc (revision 234554)
+++ mojo/public/bindings/js/core.cc (working copy)
@@ -60,7 +60,7 @@
return args.ThrowTypeError("Arrays must have the same length.");
args.Return(mojo::WaitMany(handles.data(), flags.data(),
- handles.size(), deadline));
+ static_cast<uint32_t>(handles.size()), deadline));
}
void CreateMessagePipe(const v8::FunctionCallbackInfo<v8::Value>& info) {
@@ -92,8 +92,11 @@
return args.ThrowError();
}
- args.Return(mojo::WriteMessage(handle, buffer.bytes(), buffer.num_bytes(),
- handles.data(), handles.size(), flags));
+ args.Return(mojo::WriteMessage(handle, buffer.bytes(),
+ static_cast<uint32_t>(buffer.num_bytes()),
+ handles.data(),
+ static_cast<uint32_t>(handles.size()),
+ flags));
}
void ReadMessage(const v8::FunctionCallbackInfo<v8::Value>& info) {
@@ -111,7 +114,7 @@
return args.ThrowError();
}
- uint32_t num_bytes = buffer.num_bytes();
+ uint32_t num_bytes = static_cast<uint32_t>(buffer.num_bytes());
std::vector<mojo::Handle> handles(num_handles);
MojoResult result = mojo::ReadMessage(handle, buffer.bytes(), &num_bytes,
handles.data(), &num_handles, flags);
« no previous file with comments | « no previous file | mojo/public/tests/bindings_connector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698