* gc.c (allocate_sorted_heaps): remove unused variable `add'.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2013-06-21 12:12:57 +00:00
Родитель 508b255b9a
Коммит 79d3385e9d
2 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -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> Fri Jun 21 20:50:32 2013 Koichi Sasada <ko1@atdot.net>
* include/ruby/ruby.h: constify RArray::as::ary and RArray::heap::ptr. * include/ruby/ruby.h: constify RArray::as::ary and RArray::heap::ptr.

3
gc.c
Просмотреть файл

@ -669,10 +669,9 @@ static void
allocate_sorted_heaps(rb_objspace_t *objspace, size_t next_heaps_length) allocate_sorted_heaps(rb_objspace_t *objspace, size_t next_heaps_length)
{ {
struct heaps_header **p; struct heaps_header **p;
size_t size, add; size_t size;
size = next_heaps_length*sizeof(struct heaps_header *); size = next_heaps_length*sizeof(struct heaps_header *);
add = next_heaps_length - heaps_used;
if (heaps_used > 0) { if (heaps_used > 0) {
p = (struct heaps_header **)realloc(objspace->heap.sorted, size); p = (struct heaps_header **)realloc(objspace->heap.sorted, size);