summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-21 14:14:13 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-21 14:14:13 +0000
commit16549e33da58396d243234e5880f4f1dae6ab339 (patch)
treef39da42c5b6371821cedfa3d5a3916f3a5c5ac9d /hash.c
parentc5377c2bccb7c46e4f8a958f0ddfd487c487000c (diff)
* ext/stringio/stringio.c (strio_write): should convert writing
string to the encoding of the buffer. * hash.c (rb_any_hash): typo fixed. * ext/zlib/zlib.c (rb_gzwriter_write): oops, IO string conversion need to be done by to_s. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19874 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 19646004eb..044964c809 100644
--- a/hash.c
+++ b/hash.c
@@ -79,7 +79,7 @@ rb_any_hash(VALUE a)
default:
hval = rb_funcall(a, id_hash, 0);
if (!FIXNUM_P(hval)) {
- hval = rb_funcall(hval, '%', 1, INT2FIX(5368709231));
+ hval = rb_funcall(hval, '%', 1, INT2FIX(536870923));
}
hnum = (int)FIX2LONG(hval);
}