summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-03 13:26:11 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-03 15:11:18 +0900
commit9f3888d6a3387773c8707b7971ce64c60df33d36 (patch)
treefae4b74a9d319ec899399d84cb9d6bd43c27a480 /re.c
parent37eb5e74395f148782f7d67b5218fb2e66b113d7 (diff)
Warn more duplicate literal hash keys
Following non-special_const literals: * T_REGEXP
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4548
Diffstat (limited to 're.c')
-rw-r--r--re.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/re.c b/re.c
index 5809d26bf3..64078aefd2 100644
--- a/re.c
+++ b/re.c
@@ -3009,7 +3009,7 @@ static st_index_t reg_hash(VALUE re);
* See also Object#hash.
*/
-static VALUE
+VALUE
rb_reg_hash(VALUE re)
{
st_index_t hashval = reg_hash(re);
@@ -3043,7 +3043,7 @@ reg_hash(VALUE re)
* /abc/u == /abc/n #=> false
*/
-static VALUE
+VALUE
rb_reg_equal(VALUE re1, VALUE re2)
{
if (re1 == re2) return Qtrue;