summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authortmm1 <tmm1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-27 06:24:37 +0000
committertmm1 <tmm1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-27 06:24:37 +0000
commit23178d10444f256af67c15deb4a5e16811135723 (patch)
treeb081e77b978ab58226f3d2419702ece2d427bfd7 /hash.c
parentda65a3d9067a25628a8e033c1a4c800f671acdbc (diff)
* gc.c (gc_page_sweep): Fix compile warning from last commit.
* hash.c (hash_aset_str): Re-use existing variable to avoid unnecessary pointer dereferencing. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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);
}