From 30d2565b4eddb15dd6a24617f0700d0173b63df0 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 22 Mar 2008 17:53:07 +0000 Subject: [PATCH] * process.c (rlimit_resource_value): use NUM2RLIM. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ process.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index abdaefb9c4..8629a1d8af 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun Mar 23 02:51:57 2008 Tanaka Akira + + * process.c (rlimit_resource_value): use NUM2RLIM. + Sun Mar 23 02:28:01 2008 Tadayoshi Funaba * complex.c: fixed. [ruby-dev:34109] diff --git a/process.c b/process.c index 603b396963..d3d75fe63d 100644 --- a/process.c +++ b/process.c @@ -2213,7 +2213,7 @@ rlimit_resource_value(VALUE rval) case T_FIXNUM: case T_BIGNUM: - return NUM2INT(rval); + return NUM2RLIM(rval); } #ifdef RLIM_INFINITY