[pypy-commit] pypy virtual-arguments: backout 05f5e3396044

fijal noreply at buildbot.pypy.org
Fri Jul 20 10:48:00 CEST 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: virtual-arguments
Changeset: r56255:5f66e41b15fb
Date: 2012-07-20 10:40 +0200
http://bitbucket.org/pypy/pypy/changeset/5f66e41b15fb/

Log:	backout 05f5e3396044

diff --git a/pypy/module/unicodedata/interp_ucd.py b/pypy/module/unicodedata/interp_ucd.py
--- a/pypy/module/unicodedata/interp_ucd.py
+++ b/pypy/module/unicodedata/interp_ucd.py
@@ -240,9 +240,8 @@
                 V = VBase + (SIndex % NCount) / TCount;
                 T = TBase + SIndex % TCount;
                 if T == TBase:
-                    lgt = j + 2 - resultlen
-                    if lgt > 0:
-                        result.extend([0] * (lgt + 10))
+                    if j + 2 > resultlen:
+                        result.extend([0] * (j + 2 - resultlen + 10))
                         resultlen = len(result)
                     result[j] = L
                     result[j + 1] = V


More information about the pypy-commit mailing list