summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-22 07:14:09 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-22 07:14:09 +0000
commit476b3d8f3fb238ebea44f65e4b544c06ee8690d2 (patch)
tree8147fd511459a9ee930c2e14b475591469d2b77e
parentbf3edb979f48529322a8bcf94d4f0b9a702e9cc3 (diff)
* process.c (proc_setgroups): fixed type.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/process.c b/process.c
index c236f87..3cd39c8 100644
--- a/process.c
+++ b/process.c
@@ -4411,8 +4411,8 @@ proc_setgroups(VALUE obj, VALUE ary)
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);