Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r1150:0492e398156b
Date: 2014-04-09 13:04 +0200
http://bitbucket.org/pypy/stmgc/changeset/0492e398156b/

Log:    fix

diff --git a/c7/stm/weakref.c b/c7/stm/weakref.c
--- a/c7/stm/weakref.c
+++ b/c7/stm/weakref.c
@@ -34,7 +34,7 @@
     stm_char *point_to_loc = (stm_char*)WEAKREF_PTR(weakref, size);
 
     long i;
-    for (i = 1; i <= NB_SEGMENTS; i++) {
+    for (i = 0; i <= NB_SEGMENTS; i++) {
         char *base = get_segment_base(i);
         object_t ** ref_loc = (object_t **)REAL_ADDRESS(base, point_to_loc);
         *ref_loc = value;
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to