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

Unified Diff: mojo/public/tests/bindings_connector_unittest.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 | « mojo/public/bindings/js/core.cc ('k') | mojo/services/native_viewport/native_viewport_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tests/bindings_connector_unittest.cc
===================================================================
--- mojo/public/tests/bindings_connector_unittest.cc (revision 234554)
+++ mojo/public/tests/bindings_connector_unittest.cc (working copy)
@@ -57,7 +57,7 @@
size_t payload_size = strlen(text) + 1; // Plus null terminator.
size_t num_bytes = sizeof(MessageHeader) + payload_size;
message->data = static_cast<MessageData*>(malloc(num_bytes));
- message->data->header.num_bytes = num_bytes;
+ message->data->header.num_bytes = static_cast<uint32_t>(num_bytes);
message->data->header.name = 1;
memcpy(message->data->payload, text, payload_size);
}
« no previous file with comments | « mojo/public/bindings/js/core.cc ('k') | mojo/services/native_viewport/native_viewport_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698