From: Augustin Degomme Date: Tue, 25 Nov 2014 12:16:19 +0000 (+0100) Subject: remove potential bug / clang warning X-Git-Tag: v3_12~732^2~190 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/117302b778527206befb94b08ade013d841a510f?hp=e56688e01d046ac64bcdcc723e21b8663b9c2f61;ds=sidebyside remove potential bug / clang warning size_t being undefined, the comparison < 0 was never true --- diff --git a/src/mc/mc_checkpoint.c b/src/mc/mc_checkpoint.c index b21f190862..d20592646a 100644 --- a/src/mc/mc_checkpoint.c +++ b/src/mc/mc_checkpoint.c @@ -607,7 +607,7 @@ static void MC_get_current_fd(mc_snapshot_t snapshot){ const size_t link_size = 200; char link[200]; - size_t res = readlink(source, link, link_size); + int res = readlink(source, link, link_size); if (res<0) { xbt_die("Could not read link for %s", source); }