From 2738cbeaa7d9227b472a16fe30ef72b0a0e88a01 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 17 May 2011 22:44:44 +0200 Subject: [PATCH] Move tests at proper place. --- src/surf/surf_routing.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.20.1