summaryrefslogtreecommitdiffstats
path: root/process.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-13 16:00:53 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-13 16:00:53 +0000
commit5cfe7b5250f3e762be7f36106b1b13e48f7bda1a (patch)
treeb9b571a43d86bda67a18a05d95f0a437b5500b3b /process.c
parente03d90e475e8642daf5d9aee4543be4de8a5928d (diff)
downloadruby-5cfe7b5250f3e762be7f36106b1b13e48f7bda1a.tar.gz
ruby-5cfe7b5250f3e762be7f36106b1b13e48f7bda1a.tar.xz
ruby-5cfe7b5250f3e762be7f36106b1b13e48f7bda1a.zip
* include/ruby/ruby.h: introduce 2 macros:
RFLOAT_VALUE(v), DOUBLE2NUM(dbl). Rename RFloat#value -> RFloat#double_value. Do not touch RFloat#double_value directly. * bignum.c, insns.def, marshal.c, math.c, numeric.c, object.c, pack.c, parse.y, process.c, random.c, sprintf.c, string.c, time.c: apply above changes. * ext/dl/mkcallback.rb, ext/json/ext/generator/generator.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/process.c b/process.c
index faffc6109..c78123c79 100644
--- a/process.c
+++ b/process.c
@@ -3780,10 +3780,10 @@ rb_proc_times(VALUE obj)
times(&buf);
return rb_struct_new(S_Tms,
- utime = rb_float_new(buf.tms_utime / hertz),
- stime = rb_float_new(buf.tms_stime / hertz),
- cutime = rb_float_new(buf.tms_cutime / hertz),
- sctime = rb_float_new(buf.tms_cstime / hertz));
+ utime = DOUBLE2NUM(buf.tms_utime / hertz),
+ stime = DOUBLE2NUM(buf.tms_stime / hertz),
+ cutime = DOUBLE2NUM(buf.tms_cutime / hertz),
+ sctime = DOUBLE2NUM(buf.tms_cstime / hertz));
#else
rb_notimplement();
#endif