Explorar el Código

port r18913 from 1.2: fix father arity

Samuel Thibault hace 9 años
padre
commit
b6e12ff54c
Se han modificado 1 ficheros con 1 adiciones y 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)
 void starpu_tree_prepare_children(unsigned arity, struct starpu_tree *father)
 {
 {
 	father->nodes = (struct starpu_tree*)malloc(arity*sizeof(struct starpu_tree));
 	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)
 void starpu_tree_insert(struct starpu_tree *tree, int id, int level, int is_pu, int arity, struct starpu_tree *father)