summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
Diffstat (limited to 're.c')
-rw-r--r--re.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/re.c b/re.c
index 60f8140616..0b0c899f20 100644
--- a/re.c
+++ b/re.c
@@ -1333,7 +1333,7 @@ rb_reg_become(clone, re)
VALUE re;
{
/* need better argument type check */
- if (!rb_obj_is_kind_of(re, rb_obj_class(clone))) {
+ if (!rb_obj_is_instance_of(re, rb_obj_class(clone))) {
rb_raise(rb_eTypeError, "wrong argument type");
}
RREGEXP(clone)->ptr = 0;