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) {
|
void push_stack(struct stack* s, float value) {
|
||||||
if (s->size >= s->capacity) {
|
if (s->size >= s->capacity) {
|
||||||
printf("full stack\n");
|
printf("full stack\n");
|
||||||
exit(1);
|
exit(0);
|
||||||
}
|
}
|
||||||
s->values[s->size] = value;
|
s->values[s->size] = value;
|
||||||
s->size++;
|
s->size++;
|
||||||
|
Loading…
Reference in New Issue
Block a user