Sfoglia il codice sorgente

port r18913 from 1.2: fix father arity

Samuel Thibault 8 anni fa
parent
commit
b6e12ff54c
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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)