X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/aafc09a2a6afb0e98afe0c3c4e5958e6f0c5bc6a..748fabf6540d3b6e2d58a36d0363985f0ddb85d9:/src/plugins/host_energy.cpp diff --git a/src/plugins/host_energy.cpp b/src/plugins/host_energy.cpp index 47bfda4f36..d2f5dc8c93 100644 --- a/src/plugins/host_energy.cpp +++ b/src/plugins/host_energy.cpp @@ -514,6 +514,7 @@ void sg_host_energy_plugin_init() simgrid::s4u::Host* host = activity.get_host(); if (const auto* vm = dynamic_cast(host)) host = vm->get_pm(); + xbt_assert(host != nullptr); host->extension()->update(); } });