[pypy-svn] r49734 - pypy/branch/pypy-gc-traceopt/rpython/memory/gc

arigo at codespeak.net arigo at codespeak.net
Thu Dec 13 18:34:37 CET 2007


Author: arigo
Date: Thu Dec 13 18:34:37 2007
New Revision: 49734

Modified:
   pypy/branch/pypy-gc-traceopt/rpython/memory/gc/traceopt.py
Log:
Bug.


Modified: pypy/branch/pypy-gc-traceopt/rpython/memory/gc/traceopt.py
==============================================================================
--- pypy/branch/pypy-gc-traceopt/rpython/memory/gc/traceopt.py	(original)
+++ pypy/branch/pypy-gc-traceopt/rpython/memory/gc/traceopt.py	Thu Dec 13 18:34:37 2007
@@ -194,7 +194,7 @@
     sz = struct.calcsize("Q")
     for i in range(0, len(data), sz):
         count, = struct.unpack("Q", data[i:i+sz])
-        results.append((count, i))
+        results.append((count, i // sz))
     results.sort()
     results.reverse()
     N = 20



More information about the Pypy-commit mailing list