From: degomme Date: Mon, 8 Apr 2019 09:42:08 +0000 (+0200) Subject: Fix fortran f2c. X-Git-Tag: v3.22.2~162 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/de5cf41bde606e7e57c27173d88bafdc6925e69e?ds=sidebyside Fix fortran f2c. It was using hexa to store int strings, which led to issues as 1F was interpreted as 1 in the other direction. --- diff --git a/src/smpi/mpi/smpi_f2c.cpp b/src/smpi/mpi/smpi_f2c.cpp index 93510ae264..58caf835b6 100644 --- a/src/smpi/mpi/smpi_f2c.cpp +++ b/src/smpi/mpi/smpi_f2c.cpp @@ -34,12 +34,12 @@ int F2C::f2c_id(){ }; char* F2C::get_key(char* key, int id) { - std::snprintf(key, KEY_SIZE, "%x", static_cast(id)); + std::snprintf(key, KEY_SIZE, "%u", static_cast(id)); return key; } char* F2C::get_key_id(char* key, int id) { - std::snprintf(key, KEY_SIZE, "%x_%ld", static_cast(id), simgrid::s4u::this_actor::get_pid()); + std::snprintf(key, KEY_SIZE, "%u_%ld", static_cast(id), simgrid::s4u::this_actor::get_pid()); return key; }