summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-08 13:11:32 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-08 13:11:32 +0000
commit45ab798a25130da7994bf6a426b682a982036b59 (patch)
treec1049c14760a60aa3c09f01d81ac748a73d32c3b
parent244398acccc1068be3ec7518ee53ad159dafc88e (diff)
downloadruby-45ab798a25130da7994bf6a426b682a982036b59.tar.gz
ruby-45ab798a25130da7994bf6a426b682a982036b59.tar.xz
ruby-45ab798a25130da7994bf6a426b682a982036b59.zip
* re.c (rb_reg_hash): must calculate hash.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--re.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/re.c b/re.c
index c75c5b338..2d7ea2c4c 100644
--- a/re.c
+++ b/re.c
@@ -2496,7 +2496,7 @@ static st_index_t reg_hash(VALUE re);
static VALUE
rb_reg_hash(VALUE re)
{
- st_index_t hashval;
+ st_index_t hashval = reg_hash(re);
return LONG2FIX(hashval);
}