Index: runtime/vm/message_handler_test.cc |
diff --git a/runtime/vm/message_handler_test.cc b/runtime/vm/message_handler_test.cc |
index 60390055542dd1462011372b612f69fb949416ca..57eeb342a71ef401a4b75a317be6d887053d46c8 100644 |
--- a/runtime/vm/message_handler_test.cc |
+++ b/runtime/vm/message_handler_test.cc |
@@ -50,9 +50,13 @@ class TestMessageHandler : public MessageHandler { |
// For testing purposes, keep a string with a list of the ports |
// for all messages we receive. |
intptr_t len = |
- OS::SNPrint(NULL, 0, "%s %d", port_buffer_, message->dest_port()) + 1; |
+ OS::SNPrint(NULL, 0, "%s %"Pd64"", |
+ port_buffer_, |
+ message->dest_port()) + 1; |
char* buffer = reinterpret_cast<char*>(malloc(len)); |
- OS::SNPrint(buffer, len, "%s %d", port_buffer_, message->dest_port()); |
+ OS::SNPrint(buffer, len, "%s %"Pd64"", |
+ port_buffer_, |
+ message->dest_port()); |
free(port_buffer_); |
port_buffer_ = buffer; |
delete message; |