ruby-changes:13273
From: nobu <ko1@a...>
Date: Tue, 22 Sep 2009 16:14:19 +0900 (JST)
Subject: [ruby-changes:13273] Ruby:r25034 (trunk): * process.c (proc_setgroups): fixed type.
nobu 2009-09-22 16:14:09 +0900 (Tue, 22 Sep 2009) New Revision: 25034 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25034 Log: * process.c (proc_setgroups): fixed type. Modified files: trunk/process.c Index: process.c =================================================================== --- process.c (revision 25033) +++ process.c (revision 25034) @@ -4411,8 +4411,8 @@ Check_Type(ary, T_ARRAY); ngroups = RARRAY_LEN(ary); - if (ngroups > maxgroups) - rb_raise(rb_eArgError, "too many groups, %lu max", (unsigned long)maxgroups); + if (ngroups > (size_t)maxgroups) + rb_raise(rb_eArgError, "too many groups, %u max", maxgroups); groups = ALLOCA_N(rb_gid_t, ngroups); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/