mirror of
git://git.suckless.org/sbase
synced 2026-01-26 13:43:17 +00:00
bc: Fix <= relational operator
It was implementing != instead of <=.
This commit is contained in:
parent
a49b87f927
commit
b39fe92a7b
2
bc.y
2
bc.y
@ -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);}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user