skuska 3
This commit is contained in:
parent
b62c06eba7
commit
447d5f0f6c
@ -13,7 +13,7 @@ node_t *build_tree(int *tree_data, size_t tree_data_len){
|
|||||||
|
|
||||||
if(tree_data != NULL && tree_data_len != 0){
|
if(tree_data != NULL && tree_data_len != 0){
|
||||||
koren->data = tree_data[0];
|
koren->data = tree_data[0];
|
||||||
koren->left = tree_data[0];
|
koren->left = (node_t *)tree_data[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
return koren;
|
return koren;
|
||||||
|
Loading…
Reference in New Issue
Block a user