From: Arnaud Giersch Date: Tue, 17 May 2011 20:44:44 +0000 (+0200) Subject: Move tests at proper place. X-Git-Tag: v3_6_rc3~28 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/2738cbeaa7d9227b472a16fe30ef72b0a0e88a01?ds=sidebyside Move tests at proper place. --- diff --git a/src/surf/surf_routing.c b/src/surf/surf_routing.c index 60b12918fa..702ef14088 100644 --- a/src/surf/surf_routing.c +++ b/src/surf/surf_routing.c @@ -610,14 +610,14 @@ static void elements_father(const char *src, const char *dst, /* (2) find the path to the root routing component */ for (current = src_as ; current != NULL ; current = current->routing_father) { - path_src[index_src++] = current; if (index_src >= ELEMENTS_FATHER_MAXDEPTH) xbt_die("ELEMENTS_FATHER_MAXDEPTH should be increased for path_src"); + path_src[index_src++] = current; } for (current = dst_as ; current != NULL ; current = current->routing_father) { - path_dst[index_dst++] = current; if (index_dst >= ELEMENTS_FATHER_MAXDEPTH) xbt_die("ELEMENTS_FATHER_MAXDEPTH should be increased for path_dst"); + path_dst[index_dst++] = current; } /* (3) find the common father */