summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-12-29 02:46:12 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-12-29 02:46:12 +0000
commit2cafd39ed2bd164ece3468393300684f2da19902 (patch)
treed12782ef5a6ab2a067c3cb0ea6c9a9d85f8f0c08 /range.c
parent08ec02b92b45464df3dbf79022bb15b853ab0428 (diff)
thread_critical bug reported by Dave - matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'range.c')
-rw-r--r--range.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/range.c b/range.c
index cd97504..68229b7 100644
--- a/range.c
+++ b/range.c
@@ -90,6 +90,7 @@ static VALUE
range_eq(range, obj)
VALUE range, obj;
{
+ if (range == obj) return Qtrue;
if (!rb_obj_is_kind_of(obj, rb_cRange)) return Qfalse;
if (!rb_equal(rb_ivar_get(range, id_beg), rb_ivar_get(obj, id_beg)))