From 460900654478766bfd3eea39933009add146654f Mon Sep 17 00:00:00 2001 From: shyouhei Date: Fri, 21 Apr 2017 04:42:09 +0000 Subject: typo fix (sorry!) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hash.c') 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; -- cgit v1.2.3