39
This commit is contained in:
parent
c3c3b12639
commit
95ccfaedf5
@ -43,7 +43,7 @@ void push(float number) {
|
|||||||
if (stack_top < STACK_SIZE - 1) {
|
if (stack_top < STACK_SIZE - 1) {
|
||||||
stack[++stack_top] = number;
|
stack[++stack_top] = number;
|
||||||
} else {
|
} else {
|
||||||
printf("stack overflow\n");
|
printf("full stack\n");
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user