X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5faf49cdf3f8ad8751317b857a6d3134fe07eda3..283236f8e2414d7c30d46e6d1aea0e8882699dd1:/src/surf/network_constant.cpp diff --git a/src/surf/network_constant.cpp b/src/surf/network_constant.cpp index fc4babc90d..4509a743b3 100644 --- a/src/surf/network_constant.cpp +++ b/src/surf/network_constant.cpp @@ -22,7 +22,8 @@ void surf_network_model_init_Constant() //FIXME:sg_platf_host_add_cb(netcste_count_hosts); - xbt_dynar_push(model_list, &surf_network_model); + ModelPtr model = static_cast(surf_network_model); + xbt_dynar_push(model_list, &model); //FIXME:routing_model_create(NULL); } @@ -129,7 +130,7 @@ int NetworkConstantActionLmm::unref() { m_refcount--; if (!m_refcount) { - xbt_swag_remove(this, p_stateSet); + xbt_swag_remove(static_cast(this), p_stateSet); delete this; return 1; }