aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 2a9cff601a..a1b61301f2 100644
--- a/thread.c
+++ b/thread.c
@@ -2928,7 +2928,7 @@ rb_thread_variable_set(VALUE thread, VALUE id, VALUE val)
}
locals = rb_ivar_get(thread, id_locals);
- return rb_hash_aset(locals, ID2SYM(rb_to_id(id)), val);
+ return rb_hash_aset(locals, rb_to_symbol(id), val);
}
/*