Skip to content

Commit

Permalink
mrb: fix a bug that AND operator is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 7, 2016
1 parent 4e32a94 commit f25f356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mrb/scripts/expression_tree/logical_operation.rb
Expand Up @@ -11,7 +11,7 @@ def initialize(operator, nodes)
def build(expression)
@nodes.each_with_index do |node, i|
node.build(expression)
expression.append_operator(@operator, 2) if i > 1
expression.append_operator(@operator, 2) if i > 0
end
end
end
Expand Down

0 comments on commit f25f356

Please sign in to comment.