ruby-changes:33018
From: nobu <ko1@a...>
Date: Sat, 22 Feb 2014 11:56:59 +0900 (JST)
Subject: [ruby-changes:33018] nobu:r45097 (trunk): gc.c: suppress warnings
nobu 2014-02-22 11:56:55 +0900 (Sat, 22 Feb 2014) New Revision: 45097 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45097 Log: gc.c: suppress warnings * gc.c (gc_marks): cast explicitly to suppress warnings by VC. Modified files: trunk/gc.c Index: gc.c =================================================================== --- gc.c (revision 45096) +++ gc.c (revision 45097) @@ -4525,8 +4525,8 @@ gc_marks(rb_objspace_t *objspace, int fu https://github.com/ruby/ruby/blob/trunk/gc.c#L4525 { /* See the comment about RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR */ const double r = gc_params.oldobject_limit_factor; - objspace->rgengc.remembered_shady_object_limit = objspace->rgengc.remembered_shady_object_count * r; - objspace->rgengc.old_object_limit = objspace->rgengc.old_object_count * r; + objspace->rgengc.remembered_shady_object_limit = (size_t)(objspace->rgengc.remembered_shady_object_count * r); + objspace->rgengc.old_object_limit = (size_t)(objspace->rgengc.old_object_count * r); } } else { /* minor GC */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/