r38827 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r38826‎ | r38827 | r38828 >
Date:00:53, 8 August 2008
Author:river
Status:old
Tags:
Comment:
incorrect definition of bool_expr caused parse failure on '1 & 2 == 3'
Modified paths:
  • /trunk/extensions/AbuseFilter/parser_native/parser.cpp (modified) (history)

Diff [purge]

Index: trunk/extensions/AbuseFilter/parser_native/parser.cpp
@@ -182,9 +182,9 @@
183183 bool_expr =
184184 eq2_expr[bool_expr.val = arg1]
185185 >> *(
186 - '&' >> eq_expr[bool_expr.val = bool_expr.val && arg1]
187 - | '|' >> eq_expr[bool_expr.val = bool_expr.val || arg1]
188 - | '^' >> eq_expr[bool_expr.val =
 186+ '&' >> eq2_expr[bool_expr.val = bool_expr.val && arg1]
 187+ | '|' >> eq2_expr[bool_expr.val = bool_expr.val || arg1]
 188+ | '^' >> eq2_expr[bool_expr.val =
189189 ((bool_expr.val || arg1)
190190 && !(bool_expr.val && arg1)) ]
191191 )

Status & tagging log