X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7cefce8d600641bb17bac4b5745b24bad143954d..58801abf7076bc6bd09c971104f6dbd3ff236fc6:/src/surf/ptask_L07.cpp diff --git a/src/surf/ptask_L07.cpp b/src/surf/ptask_L07.cpp index 17dca147d7..18cba8cae7 100644 --- a/src/surf/ptask_L07.cpp +++ b/src/surf/ptask_L07.cpp @@ -121,8 +121,8 @@ void HostL07Model::update_actions_state(double /*now*/, double delta) kernel::lmm::Constraint* cnst = action.get_variable()->get_constraint(i); while (cnst != nullptr) { i++; - void* constraint_id = cnst->get_id(); - if (not static_cast(constraint_id)->is_on()) { + kernel::resource::Resource* constraint_id = cnst->get_id(); + if (not constraint_id->is_on()) { XBT_DEBUG("Action (%p) Failed!!", &action); action.finish(kernel::resource::Action::State::FAILED); break;