Explorar o código

port r18913 from 1.2: fix father arity

Samuel Thibault %!s(int64=8) %!d(string=hai) anos
pai
achega
b6e12ff54c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/core/tree.c

+ 1 - 0
src/core/tree.c

@@ -38,6 +38,7 @@ void starpu_tree_reset_visited(struct starpu_tree *tree, char *visited)
 void starpu_tree_prepare_children(unsigned arity, struct starpu_tree *father)
 {
 	father->nodes = (struct starpu_tree*)malloc(arity*sizeof(struct starpu_tree));
+	father->arity = arity;
 }
 
 void starpu_tree_insert(struct starpu_tree *tree, int id, int level, int is_pu, int arity, struct starpu_tree *father)