Aktualizovat du3/program.c
This commit is contained in:
parent
ad9ee927e5
commit
2734d3c145
@ -25,7 +25,7 @@ int push_stack(struct stack* s, float znac) {
|
||||
|
||||
int pop_stack(struct stack* s, float* out) {
|
||||
if (s->size < 1) {
|
||||
printf("stack underflow\n");
|
||||
printf("not enough operands\n");
|
||||
return 0;
|
||||
}
|
||||
*out = s->values[--s->size]; //зменшуємо розмір стеку
|
||||
|
||||
Loading…
Reference in New Issue
Block a user