From de5cf41bde606e7e57c27173d88bafdc6925e69e Mon Sep 17 00:00:00 2001 From: degomme Date: Mon, 8 Apr 2019 11:42:08 +0200 Subject: [PATCH] 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. --- src/smpi/mpi/smpi_f2c.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.30.2