From 8b1217158d55e6684abebcc850e5f9d72560faf5 Mon Sep 17 00:00:00 2001 From: Frederic Suter Date: Tue, 4 Apr 2017 09:03:53 +0200 Subject: [PATCH] fix bug in asynchronous receive (https://github.com/simgrid/simgrid/issues/144) --- src/s4u/s4u_comm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s4u/s4u_comm.cpp b/src/s4u/s4u_comm.cpp index 3d6be869d4..eaa600916d 100644 --- a/src/s4u/s4u_comm.cpp +++ b/src/s4u/s4u_comm.cpp @@ -147,7 +147,7 @@ s4u::Comm &Comm::send_async(MailboxPtr dest, void *data, int simulatedSize) { s4u::Comm &Comm::recv_async(MailboxPtr dest, void **data) { s4u::Comm &res = s4u::Comm::recv_init(dest); - res.setDstData(data); + res.setDstData(data, sizeof(*data)); res.start(); return res; } -- 2.20.1