This commit is contained in:
Matej Hajduk 2025-10-15 18:00:04 +02:00
parent 1eb4ca6666
commit f521f57391

View File

@ -56,8 +56,8 @@ int main(){
} }
else if(strlen(x) == 1 && strchr("+-/*", x[0])) { else if(strlen(x) == 1 && strchr("+-/*", x[0])) {
if (mystack.size < 2){ if (mystack.size < 2){
fprintf(stderr, "malo cisel \n"); printf("not enough operands\n");
return 1; return 0;
} }
float a = pop(&mystack); float a = pop(&mystack);
float b = pop(&mystack); float b = pop(&mystack);