From 30f40863fc506c7013dec1902201d4bdffe3a101 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Mon, 19 Jun 2017 23:48:52 +0200 Subject: [PATCH 1/1] fix some more MC examples --- src/mc/mc_base.cpp | 2 +- src/mc/mc_comm_pattern.cpp | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/mc/mc_base.cpp b/src/mc/mc_base.cpp index b178888c2b..6f13189458 100644 --- a/src/mc/mc_base.cpp +++ b/src/mc/mc_base.cpp @@ -107,7 +107,7 @@ bool request_is_enabled(smx_simcall_t req) case SIMCALL_COMM_WAITANY: { xbt_dynar_t comms; simgrid::kernel::activity::CommImpl* act = - static_cast(&*simcall_comm_wait__get__comm(req)); + static_cast(simcall_comm_wait__getraw__comm(req)); #if SIMGRID_HAVE_MC s_xbt_dynar_t comms_buffer; diff --git a/src/mc/mc_comm_pattern.cpp b/src/mc/mc_comm_pattern.cpp index dfba80e066..e14e34de67 100644 --- a/src/mc/mc_comm_pattern.cpp +++ b/src/mc/mc_comm_pattern.cpp @@ -1,5 +1,4 @@ -/* Copyright (c) 2007-2015. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2007-2017. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -89,7 +88,7 @@ void MC_handle_comm_pattern( simgrid::mc::RemotePtr comm_addr = nullptr; if (call_type == MC_CALL_TYPE_WAIT) comm_addr = remote(static_cast( - simgrid::simix::unmarshal(req->result))); + simgrid::simix::unmarshal_raw(req->result))); else { simgrid::kernel::activity::CommImpl* addr; -- 2.20.1