aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index 6544c199bb..45abacc861 100644
--- a/hash.c
+++ b/hash.c
@@ -638,7 +638,7 @@ static inline int
hash_insert_raw(st_table *tbl, VALUE key, VALUE val)
{
st_data_t v = (st_data_t)val;
- st_data_t k = (rb_obj_class(k) == rb_cString) ?
+ st_data_t k = (rb_obj_class(key) == rb_cString) ?
(st_data_t)rb_str_new_frozen(key) :
(st_data_t)key;