ruby-changes:42381
From: nobu <ko1@a...>
Date: Thu, 31 Mar 2016 21:46:21 +0900 (JST)
Subject: [ruby-changes:42381] nobu:r54455 (trunk): gc.c: use PRIdSIZE
nobu 2016-03-31 21:46:15 +0900 (Thu, 31 Mar 2016) New Revision: 54455 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54455 Log: gc.c: use PRIdSIZE * gc.c (heap_extend_pages): fix format specifiers for size_t. Modified files: trunk/gc.c Index: gc.c =================================================================== --- gc.c (revision 54454) +++ gc.c (revision 54455) @@ -1626,8 +1626,14 @@ heap_extend_pages(rb_objspace_t *objspac https://github.com/ruby/ruby/blob/trunk/gc.c#L1626 next_used = (size_t)(f * used); - if (0) fprintf(stderr, "free_slots(%8ld)/total_slots(%8ld)=%1.2f, G(%1.2f), f(%1.2f), used(%8ld) => next_used(%8ld)\n", - free_slots, total_slots, free_slots/(double)total_slots, goal_ratio, f, used, next_used); + if (0) { + fprintf(stderr, + "free_slots(%8"PRIdSIZE")/total_slots(%8"PRIdSIZE")=%1.2f," + " G(%1.2f), f(%1.2f)," + " used(%8"PRIdSIZE") => next_used(%8"PRIdSIZE")\n", + free_slots, total_slots, free_slots/(double)total_slots, + goal_ratio, f, used, next_used); + } } if (gc_params.growth_max_slots > 0) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/