diff options
Diffstat (limited to 'prog/expr.go')
| -rw-r--r-- | prog/expr.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/prog/expr.go b/prog/expr.go index e9446ab2c..87fb056a9 100644 --- a/prog/expr.go +++ b/prog/expr.go @@ -30,6 +30,11 @@ func (bo *BinaryExpression) Evaluate(finder ArgFinder) (uint64, bool) { return 0, true case OperatorBinaryAnd: return left & right, true + case OperatorOr: + if left != 0 || right != 0 { + return 1, true + } + return 0, true } panic(fmt.Sprintf("unknown operator %q", bo.Operator)) } |
