X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fabf70a9d566725d01d925f83fae02ab82a95547..0dda9bcd2d7df2c8141a8170a7cb8fe20746b4a9:/src/smpi/smpi_f2c.cpp diff --git a/src/smpi/smpi_f2c.cpp b/src/smpi/smpi_f2c.cpp index 27f8fb45e9..df584b4f5e 100644 --- a/src/smpi/smpi_f2c.cpp +++ b/src/smpi/smpi_f2c.cpp @@ -3,6 +3,7 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ +#include "src/smpi/private.h" #include "src/smpi/smpi_f2c.hpp" #include "src/smpi/smpi_process.hpp" @@ -79,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;