X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/658d96d7819533eb1f5b684e27862cdbbafa0f0b..1c679f3a3f8d3f08f42d80e673180664239354c6:/src/instr/instr_interface.cpp?ds=sidebyside diff --git a/src/instr/instr_interface.cpp b/src/instr/instr_interface.cpp index 9ca67ce5e7..7bcae37cb1 100644 --- a/src/instr/instr_interface.cpp +++ b/src/instr/instr_interface.cpp @@ -178,7 +178,8 @@ void TRACE_declare_mark_value_with_color (const char *mark_type, const char *mar if (not mark_value) THROWF (tracing_error, 1, "mark_value is nullptr"); - simgrid::instr::Type* type = simgrid::instr::Type::getRootType()->byName(mark_type); + simgrid::instr::EventType* type = + static_cast(simgrid::instr::Type::getRootType()->byName(mark_type)); if (not type) { THROWF (tracing_error, 1, "mark_type with name (%s) is not declared", mark_type); } else { @@ -186,7 +187,7 @@ void TRACE_declare_mark_value_with_color (const char *mark_type, const char *mar mark_color = "1.0 1.0 1.0" /*white*/; XBT_DEBUG("MARK,declare_value %s %s %s", mark_type, mark_value, mark_color); - static_cast(type)->addEntityValue(mark_value, mark_color); + type->addEntityValue(mark_value, mark_color); } }