[pypy-commit] pypy virtual-arguments: and another one

fijal noreply at buildbot.pypy.org
Thu Jul 19 18:03:58 CEST 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: virtual-arguments
Changeset: r56226:05f5e3396044
Date: 2012-07-19 18:03 +0200
http://bitbucket.org/pypy/pypy/changeset/05f5e3396044/

Log:	and another one

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
@@ -243,8 +243,9 @@
                 V = VBase + (SIndex % NCount) / TCount;
                 T = TBase + SIndex % TCount;
                 if T == TBase:
-                    if j + 2 > resultlen:
-                        result.extend([0] * (j + 2 - resultlen + 10))
+                    lgt = j + 2 - resultlen
+                    if lgt > 0:
+                        result.extend([0] * (lgt + 10))
                         resultlen = len(result)
                     result[j] = L
                     result[j + 1] = V


More information about the pypy-commit mailing list