Author: Armin Rigo <[email protected]>
Branch: c8-hashtable
Changeset: r1728:dee3d648763d
Date: 2015-03-12 16:32 +0100
http://bitbucket.org/pypy/stmgc/changeset/dee3d648763d/

Log:    argh

diff --git a/c8/stm/gcpage.c b/c8/stm/gcpage.c
--- a/c8/stm/gcpage.c
+++ b/c8/stm/gcpage.c
@@ -157,7 +157,7 @@
         char *end = dest + size_rounded_up;
 
         while (((uintptr_t)dest) / 4096 != ((uintptr_t)end - 1) / 4096) {
-            uintptr_t count = 4096 - ((uintptr_t)dest) / 4096;
+            uintptr_t count = 4096 - (((uintptr_t)dest) & 4095);
             _fill_preexisting_slice(j, dest, src, count);
             src += count;
             dest += count;
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to