aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/thread.c b/thread.c
index 3cdc8b79b8..294df1a258 100644
--- a/thread.c
+++ b/thread.c
@@ -1986,7 +1986,7 @@ VALUE
rb_thread_local_aref(VALUE thread, ID id)
{
rb_thread_t *th;
- VALUE val;
+ st_data_t val;
GetThreadPtr(thread, th);
if (rb_safe_level() >= 4 && th != GET_THREAD()) {
@@ -1996,7 +1996,7 @@ rb_thread_local_aref(VALUE thread, ID id)
return Qnil;
}
if (st_lookup(th->local_storage, id, &val)) {
- return val;
+ return (VALUE)val;
}
return Qnil;
}