Author: Maciej Fijalkowski <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit