summaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-19 01:44:39 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-19 01:44:39 +0000
commite9f385c6bf97c7608c35459bc59c043328366ef6 (patch)
tree6dc7a6538fa72ea50681a4ecb13adcd2373d10c7 /gc.c
parent51cac116e9a2a9c966b84975b0faaa8512d3e623 (diff)
downloadruby-e9f385c6bf97c7608c35459bc59c043328366ef6.tar.gz
ruby-e9f385c6bf97c7608c35459bc59c043328366ef6.tar.xz
ruby-e9f385c6bf97c7608c35459bc59c043328366ef6.zip
* gc.c (garbage_collect_with_gvl): suppress warnings.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index d56d2d170..ab882c50d 100644
--- a/gc.c
+++ b/gc.c
@@ -593,7 +593,7 @@ garbage_collect_with_gvl(rb_objspace_t *objspace)
}
else {
if (ruby_native_thread_p()) {
- return (int)rb_thread_call_with_gvl(gc_with_gvl, (void *)objspace);
+ return (VALUE)rb_thread_call_with_gvl(gc_with_gvl, (void *)objspace);
}
else {
/* no ruby thread */