From 94c9a9f50ba081df92936cc34f1bac1a9255909b Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Mon, 25 Apr 2016 14:01:52 +0200 Subject: [PATCH] Fix bad pointer cast in the L07 model --- src/surf/ptask_L07.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/surf/ptask_L07.cpp b/src/surf/ptask_L07.cpp index 8d21b65520..9a7179fee8 100644 --- a/src/surf/ptask_L07.cpp +++ b/src/surf/ptask_L07.cpp @@ -152,8 +152,7 @@ void HostL07Model::updateActionsState(double /*now*/, double delta) { while ((cnst = lmm_get_cnst_from_var(maxminSystem_, action->getVariable(), i++))) { void *constraint_id = lmm_constraint_id(cnst); - - if (static_cast(constraint_id)->isOff()) { + if (static_cast(constraint_id)->isOff()) { XBT_DEBUG("Action (%p) Failed!!", action); action->finish(); action->setState(Action::State::failed); -- 2.20.1