diff --git a/cv8/program.c b/cv8/program.c index b4407cd..924e3bc 100644 --- a/cv8/program.c +++ b/cv8/program.c @@ -36,12 +36,12 @@ struct tree* read_tree(){ return create_node(); }*/ if(buffer[0] != '*'){ - //if(node->left == NULL){ + if(node->left == NULL){ node->left = read_tree(); - //} - //if(node->right == NULL){ + } + if(node->right == NULL){ node->right = read_tree(); - //} + } } /*else if(string[0] == '*'){ if(node->left == NULL){ @@ -51,9 +51,9 @@ struct tree* read_tree(){ strcpy(node->value, string); } }*/ - if(node->left != NULL && node->right != NULL){ + //if(node->left != NULL && node->right != NULL){ return node; - } + //} } void print_tree(struct tree* node, int offset){