]> gitweb.factorcode.org Git - factor.git/commitdiff
VM: silly error: should be index * check_r_count, not index + check_r_count
authorBjörn Lindqvist <bjourne@gmail.com>
Sat, 30 Aug 2014 04:52:53 +0000 (06:52 +0200)
committerDoug Coleman <doug.coleman@gmail.com>
Mon, 8 Sep 2014 21:54:18 +0000 (14:54 -0700)
vm/gc_info.hpp

index 60794a79a0009e459e54b97fe95ababb9f0af9b6..06710aa856895343164f74a9aebaccc823e2ed6e 100644 (file)
@@ -61,7 +61,7 @@ struct gc_info {
         return_address_count * scrub_d_count +
         return_address_count * scrub_r_count +
         return_address_count * check_d_count;
-    return base + index + check_r_count;
+    return base + index * check_r_count;
   }
 
   cell callsite_gc_roots(cell index) {