Преглед изворни кода

port r18913 from 1.2: fix father arity

Samuel Thibault пре 8 година
родитељ
комит
b6e12ff54c
1 измењених фајлова са 1 додато и 0 уклоњено
  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)