summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-14 05:57:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-14 05:57:58 +0000
commit2c20dd1473606b598d405f501a9873355abcee75 (patch)
tree0c2fbe81e6ca9b8ab4de2f8336f76c7ee114fd00
parent914969a0400e4df63d959c45d972d3f58e1ac58c (diff)
* gc.c (getrusage_time): should return the value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--gc.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 42005759c0..517499df62 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,6 @@
-Thu Aug 14 14:56:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Aug 14 14:57:46 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (getrusage_time): should return the value.
* thread.c (rb_thread_priority_set): get rid of C99 feature.
diff --git a/gc.c b/gc.c
index 736dd63024..2bfb27d355 100644
--- a/gc.c
+++ b/gc.c
@@ -140,6 +140,7 @@ getrusage_time(void)
t += (double)(DWORD)(q >> 16) * (1 << 16);
t += (DWORD)q & ~(~0 << 16);
#endif
+ return t;
#else
return 0.0;
#endif