Initializacia
This commit is contained in:
parent
0a45896795
commit
ae048d9304
@ -55,7 +55,7 @@ void check_brackets(const char *line) {
|
|||||||
}
|
}
|
||||||
} else if (is_closing(ch)) {
|
} else if (is_closing(ch)) {
|
||||||
if (stack_top == -1) {
|
if (stack_top == -1) {
|
||||||
printf("Unexpected closing bracket %c in %d \n", ch, i);
|
printf("Unexpected closing bracket %c in %d\n", ch, i);
|
||||||
return;
|
return;
|
||||||
} else if (stack[stack_top].bracket == matching_bracket(ch)) {
|
} else if (stack[stack_top].bracket == matching_bracket(ch)) {
|
||||||
stack_top--;
|
stack_top--;
|
||||||
|
Loading…
Reference in New Issue
Block a user