ruby-changes:31317
From: ko1 <ko1@a...>
Date: Wed, 23 Oct 2013 17:52:46 +0900 (JST)
Subject: [ruby-changes:31317] ko1:r43396 (trunk): * gc.c (heap_pages_free_unused_pages): cast to (int) for size_t
ko1 2013-10-23 17:52:38 +0900 (Wed, 23 Oct 2013) New Revision: 43396 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43396 Log: * gc.c (heap_pages_free_unused_pages): cast to (int) for size_t variable `i'. Modified files: trunk/ChangeLog trunk/gc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 43395) +++ ChangeLog (revision 43396) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Oct 23 17:52:03 2013 Koichi Sasada <ko1@a...> + + * gc.c (heap_pages_free_unused_pages): cast to (int) for size_t + variable `i'. + Wed Oct 23 17:39:35 2013 Koichi Sasada <ko1@a...> * gc.c: introduce tomb heap. Index: gc.c =================================================================== --- gc.c (revision 43395) +++ gc.c (revision 43396) @@ -829,7 +829,7 @@ heap_pages_free_unused_pages(rb_objspace https://github.com/ruby/ruby/blob/trunk/gc.c#L829 if (page->heap == heap_tomb && page->final_num == 0) { if (heap_pages_swept_num - page->limit > heap_pages_free_min_page) { if (0) fprintf(stderr, "heap_pages_free_unused_pages: %d free page %p, heap_pages_swept_num: %d, heap_pages_do_heap_free: %d\n", - i, page, (int)heap_pages_swept_num, (int)heap_pages_free_min_page); + (int)i, page, (int)heap_pages_swept_num, (int)heap_pages_free_min_page); heap_pages_swept_num -= page->limit; heap_unlink_page(objspace, heap_tomb, page); heap_page_free(objspace, page); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/