X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d6d03a0a88c2673c9e5c604d63912b77bc17fdd4..0dda9bcd2d7df2c8141a8170a7cb8fe20746b4a9:/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;