summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-01-05 04:19:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-01-05 04:19:58 +0000
commit1cc7986a113e9eb330f5f3579c75e0ccd817ddf8 (patch)
tree5360b3b8408c59f966d2f73847d57063c95a018b /range.c
parent8090c2f214e6c4f8981ccb4e6a1213bd1284fa08 (diff)
* range.c (range_member): beginning check was
wrong. [ruby-talk:30252] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'range.c')
-rw-r--r--range.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/range.c b/range.c
index abfebf5..b18951d 100644
--- a/range.c
+++ b/range.c
@@ -538,7 +538,7 @@ range_member(range, val)
beg = rb_ivar_get(range, id_beg);
end = rb_ivar_get(range, id_end);
- if (r_lt(beg, val)) return Qtrue;
+ if (r_gt(beg, val)) return Qfalse;
if (EXCL(range)) {
if (r_lt(val, end)) return Qtrue;
}