diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | gc.c | 3 |
2 files changed, 5 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Fri Jun 21 21:11:53 2013 Koichi Sasada <ko1@atdot.net> + + * gc.c (allocate_sorted_heaps): remove unused variable `add'. + Fri Jun 21 20:50:32 2013 Koichi Sasada <ko1@atdot.net> * include/ruby/ruby.h: constify RArray::as::ary and RArray::heap::ptr. @@ -669,10 +669,9 @@ static void allocate_sorted_heaps(rb_objspace_t *objspace, size_t next_heaps_length) { struct heaps_header **p; - size_t size, add; + size_t size; size = next_heaps_length*sizeof(struct heaps_header *); - add = next_heaps_length - heaps_used; if (heaps_used > 0) { p = (struct heaps_header **)realloc(objspace->heap.sorted, size); |