From e90255eca1a259d308f4402ca347d1f0dd2e8366 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Sun, 22 Nov 2020 13:55:30 +0100 Subject: [PATCH] buffet --- cv8/program.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); } - } }