aboutsummaryrefslogtreecommitdiffstats
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index 670e7adc12..a114773259 100644
--- a/hash.c
+++ b/hash.c
@@ -1264,7 +1264,7 @@ hash_aset_str(st_data_t *key, st_data_t *val, struct update_arg *arg, int existi
if (!existing) {
VALUE str = (VALUE)*key;
if (!OBJ_FROZEN(str))
- *key = rb_fstring((VALUE)*key);
+ *key = rb_fstring(str);
}
return hash_aset(key, val, arg, existing);
}