diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-08 13:10:04 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-08 13:10:04 +0000 |
commit | 31b7ae00c05aef76416c767df92be45d62e9d06a (patch) | |
tree | 87743fd1893484f1af704d20e3695810ea21a893 /compile.c | |
parent | 034414741e4616f7a305f12fe36e1f9a6b0ff074 (diff) | |
download | ruby-31b7ae00c05aef76416c767df92be45d62e9d06a.tar.gz |
* include/ruby/st.h (st_hash_func): use st_index_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1233,14 +1233,14 @@ cdhash_cmp(VALUE val, VALUE lit) return !rb_eql(lit, val); } -static int +static st_index_t cdhash_hash(VALUE a) { - if (SPECIAL_CONST_P(a)) return (int)a; + if (SPECIAL_CONST_P(a)) return (st_index_t)a; if (TYPE(a) == T_STRING) return rb_str_hash(a); { VALUE hval = rb_hash(a); - return (int)FIX2LONG(hval); + return (st_index_t)FIX2LONG(hval); } } |