[pypy-commit] pypy default: backout ded906e02c44 for now
arigo
noreply at buildbot.pypy.org
Tue Aug 20 16:58:56 CEST 2013
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r66265:229673529cf2
Date: 2013-08-20 16:57 +0200
http://bitbucket.org/pypy/pypy/changeset/229673529cf2/
Log: backout ded906e02c44 for now
diff --git a/rpython/rlib/rsre/rsre_char.py b/rpython/rlib/rsre/rsre_char.py
--- a/rpython/rlib/rsre/rsre_char.py
+++ b/rpython/rlib/rsre/rsre_char.py
@@ -115,7 +115,10 @@
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
@@ -157,7 +160,9 @@
ppos += 1
else:
return False
- return result ^ negated
+ if negated:
+ return not result
+ return result
def set_literal(pat, index, char_code):
# <LITERAL> <code>
More information about the pypy-commit
mailing list