X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9f1660082076723d68ddda6efed0f51c638b05ab..49b1303645f1ec4a07a561ce1e747a094cfb86d0:/src/smpi/smpi_f2c.cpp diff --git a/src/smpi/smpi_f2c.cpp b/src/smpi/smpi_f2c.cpp index 978722d37d..df584b4f5e 100644 --- a/src/smpi/smpi_f2c.cpp +++ b/src/smpi/smpi_f2c.cpp @@ -80,8 +80,8 @@ F2C* F2C::f2c(int id){ if(f2c_lookup_==nullptr){ f2c_lookup_=xbt_dict_new_homogeneous(nullptr); } - char key[KEY_SIZE]; if(id >= 0){ + char key[KEY_SIZE]; return static_cast(xbt_dict_get_or_null(f2c_lookup_, get_key(key, id))); }else return NULL;