Author: Alex Gaynor <[email protected]>
Branch:
Changeset: r49740:fd61e0e2e288
Date: 2011-11-24 09:42 -0600
http://bitbucket.org/pypy/pypy/changeset/fd61e0e2e288/
Log: fix
diff --git a/pypy/rpython/lltypesystem/rstr.py
b/pypy/rpython/lltypesystem/rstr.py
--- a/pypy/rpython/lltypesystem/rstr.py
+++ b/pypy/rpython/lltypesystem/rstr.py
@@ -316,7 +316,7 @@
s.chars[0] = ch
return s
- @jit.look_inside_iff(lambda str: jit.isconstant(len(str)) and len(str) ==
1)
+ @jit.look_inside_iff(lambda str: jit.isconstant(len(str.chars)) and
len(str.chars) == 1)
@jit.oopspec("str.str2unicode(str)")
def ll_str2unicode(str):
lgt = len(str.chars)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit