refresh
This commit is contained in:
parent
4aebd8a377
commit
1d1a6135e1
@ -29,7 +29,7 @@ struct stack* create_stack (int capacity) {
|
||||
void push_stack(struct stack* s, float value) {
|
||||
if (s->size >= s->capacity) {
|
||||
printf("full stack\n");
|
||||
exit(1);
|
||||
exit(0);
|
||||
}
|
||||
s->values[s->size] = value;
|
||||
s->size++;
|
||||
|
Loading…
Reference in New Issue
Block a user