Commits

Armin Rigo committed 2296735

backout ded906e02c44 for now

Comments (0)

Files changed (1)

rpython/rlib/rsre/rsre_char.py

     for function, negate in category_dispatch_unroll:
         if category_code == i:
             result = function(char_code)
-            return result ^ negate
+            if negate:
+                return not result # XXX this might lead to a guard
+            else:
+                return result
         i = i + 1
     else:
         return False
                 ppos += 1
             else:
                 return False
-    return result ^ negated
+    if negated:
+        return not result
+    return result
 
 def set_literal(pat, index, char_code):
     # <LITERAL> <code>