bc: Fix <= relational operator

It was implementing != instead of <=.
This commit is contained in:
Roberto E. Vargas Caballero 2025-11-23 09:43:45 +01:00
parent a49b87f927
commit b39fe92a7b

2
bc.y
View File

@ -168,7 +168,7 @@ arglst : expr
rel : expr
| expr EQ expr {$$ = code("%s%s=", $3, $1);}
| expr LE expr {$$ = code("%s%s!=", $3, $1);}
| expr LE expr {$$ = code("%s%s!>", $3, $1);}
| expr GE expr {$$ = code("%s%s!<", $3, $1);}
| expr NE expr {$$ = code("%s%s!=", $3, $1);}
| expr '<' expr {$$ = code("%s%s<", $3, $1);}