Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
don't free the properties of the cluster before the last host
[simgrid.git] / src / smpi / smpi_info.cpp
index 8b9fb64..50b3f92 100644 (file)
@@ -91,7 +91,7 @@ int Info::get_nthkey(int n, char *key){
 
 int Info::get_valuelen(char *key, int *valuelen, int *flag){
   *flag=false;
-  char* tmpvalue=(char*)xbt_dict_get_or_null(dict_, key);
+  char* tmpvalue=static_cast<char*>(xbt_dict_get_or_null(dict_, key));
   if(tmpvalue){
     *valuelen=strlen(tmpvalue);
     *flag=true;