diff --git a/cv8/program.c b/cv8/program.c index f5e723c..c3ac408 100644 --- a/cv8/program.c +++ b/cv8/program.c @@ -36,7 +36,7 @@ struct tree* read_tree(){ } struct tree* search(struct tree* this){ - char c = getchar(); + int c = getchar(); if(this->left != NULL && this->right != NULL){ if(c == 'a'){ @@ -47,7 +47,6 @@ struct tree* search(struct tree* this){ printf("%s\n", this->right); this->right = search(this->right); } - } }