summaryrefslogtreecommitdiffstats
path: root/hash.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-16 14:51:38 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-16 14:51:38 +0000
commitdc8f974da55fea4d0074b5e7adaf97595c09a681 (patch)
tree2f2f4078edee6f615332446ddaa3de62c2a51813 /hash.c
parent18e3fc34aaee876cd91bd8a9fb24312811f4431f (diff)
downloadruby-dc8f974da55fea4d0074b5e7adaf97595c09a681.tar.gz
ruby-dc8f974da55fea4d0074b5e7adaf97595c09a681.tar.xz
ruby-dc8f974da55fea4d0074b5e7adaf97595c09a681.zip
* numeric.c (flo_divmod): protect float values from GC by
assignment to local variables. [ruby-dev:24873] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/hash.c b/hash.c
index 270553005..c9a26a0a8 100644
--- a/hash.c
+++ b/hash.c
@@ -1554,8 +1554,10 @@ rb_hash_update_block_i(key, value, hash)
/*
* call-seq:
- * hsh.merge!(other_hash) => hsh
- * hsh.update(other_hash) => hsh
+ * hsh.merge!(other_hash) => hsh
+ * hsh.update(other_hash) => hsh
+ * hsh.merge!(other_hash){|key, oldval, newval| block} => hsh
+ * hsh.update(other_hash){|key, oldval, newval| block} => hsh
*
* Adds the contents of <i>other_hash</i> to <i>hsh</i>, overwriting
* entries with duplicate keys with those from <i>other_hash</i>.
@@ -1581,7 +1583,8 @@ rb_hash_update(hash1, hash2)
/*
* call-seq:
- * hsh.merge(other_hash) -> a_hash
+ * hsh.merge(other_hash) -> a_hash
+ * hsh.merge(other_hash){|key, oldval, newval| block} -> a_hash
*
* Returns a new hash containing the contents of <i>other_hash</i> and
* the contents of <i>hsh</i>, overwriting entries in <i>hsh</i> with