Author: Ronan Lamy <[email protected]>
Branch: 
Changeset: r84410:4251bbe57346
Date: 2016-05-13 01:09 +0100
http://bitbucket.org/pypy/pypy/changeset/4251bbe57346/

Log:    fix translation

diff --git a/rpython/memory/gc/env.py b/rpython/memory/gc/env.py
--- a/rpython/memory/gc/env.py
+++ b/rpython/memory/gc/env.py
@@ -244,7 +244,9 @@
             size = data[start:end]
             if size[len(size)-1] not in ('K', 'k'):    # assume kilobytes for 
now
                 continue
-            number = int(size[:len(size)-1])* 1024
+            last = len(size) - 1
+            assert last >= 0
+            number = int(size[:last]) * 1024
             # for now we look for the smallest of the L2 caches of the CPUs
             if number < L2cache:
                 L2cache = number
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to