Skip to content

Commit bbd379c

Browse files
authored
Merge pull request #131 from saoirse-a/bool-not-equal-bug
NotEqual op on booleans performs equality check
2 parents ecb226f + 8df94c9 commit bbd379c

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/org/eclipse/biscuit/datalog/expressions

1 file changed

+1
-1
lines changed

src/main/java/org/eclipse/biscuit/datalog/expressions/Op.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ public void evaluate(
363363
break;
364364
case NotEqual:
365365
if (right instanceof Term.Bool && left instanceof Term.Bool) {
366-
stack.push(new Term.Bool(((Term.Bool) left).value() == ((Term.Bool) right).value()));
366+
stack.push(new Term.Bool(((Term.Bool) left).value() != ((Term.Bool) right).value()));
367367
}
368368
if (right instanceof Term.Integer && left instanceof Term.Integer) {
369369
stack.push(

0 commit comments

Comments
 (0)