[pypy-commit] pypy optresult: small fix to the level1 equality

fijal noreply at buildbot.pypy.org
Tue May 26 22:36:13 CEST 2015


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: optresult
Changeset: r77601:12c5c6145846
Date: 2015-05-26 20:22 +0200
http://bitbucket.org/pypy/pypy/changeset/12c5c6145846/

Log:	small fix to the level1 equality

diff --git a/rpython/jit/metainterp/optimizeopt/vstring.py b/rpython/jit/metainterp/optimizeopt/vstring.py
--- a/rpython/jit/metainterp/optimizeopt/vstring.py
+++ b/rpython/jit/metainterp/optimizeopt/vstring.py
@@ -664,8 +664,9 @@
                 if index < len1:
                     return self.strgetitem(sinfo.vleft, leftinfo, vindex, mode)
                 else:
-                    vindex = optimizer.ConstantIntValue(ConstInt(index - len1))
-                    return self.strgetitem(value.right, vindex, mode)
+                    vindex = ConstInt(index - len1)
+                    rightinf = self.getptrinfo(sinfo.vright)
+                    return self.strgetitem(sinfo.vright, rightinf, vindex, mode)
         #
         xxx
         resbox = _strgetitem(self, value.force_box(self), vindex.force_box(self), mode, resbox)


More information about the pypy-commit mailing list