Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix build, and avoid (void*) cast
[simgrid.git] / examples / s4u / app-masterworker / s4u_app-masterworker.cpp
index 68342bd..f9e0c1b 100644 (file)
@@ -42,7 +42,7 @@ public:
 
       /* - Send the task to the @ref worker */
       char* payload = bprintf("%f", comp_size);
-      simgrid::s4u::this_actor::send(mailbox, (void*)(payload), comm_size);
+      simgrid::s4u::this_actor::send(mailbox, payload, comm_size);
     }
 
     XBT_INFO("All tasks have been dispatched. Let's tell everybody the computation is over.");