[pypy-commit] pypy default: fix

alex_gaynor noreply at buildbot.pypy.org
Thu Nov 24 16:42:27 CET 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
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)


More information about the pypy-commit mailing list