summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-05 01:06:49 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-05 01:06:49 +0000
commitba563e4a410eb8f01709cc2f37a42361f5998311 (patch)
treea254794a8cd36c4f85f6aca7a555455cecc85203 /hash.c
parent151d11b5b12b0dc9222e93c8e1c668ccd15d931d (diff)
* include/ruby/st.h, st.c (st_init_table, st_init_table_with_size):
constified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hash.c b/hash.c
index 647c21803c..b2008350c2 100644
--- a/hash.c
+++ b/hash.c
@@ -94,7 +94,7 @@ rb_any_hash(VALUE a)
}
}
-static struct st_hash_type objhash = {
+static const struct st_hash_type objhash = {
rb_any_cmp,
rb_any_hash,
};
@@ -1614,7 +1614,7 @@ rb_hash_flatten(int argc, VALUE *argv, VALUE hash)
return ary;
}
-static struct st_hash_type identhash = {
+static const struct st_hash_type identhash = {
st_numcmp,
st_numhash,
};