зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
8090c2f214
Коммит
1cc7986a11
|
@ -1,3 +1,8 @@
|
|||
Sat Jan 5 13:18:11 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||
|
||||
* range.c (range_member): beginning check was
|
||||
wrong. [ruby-talk:30252]
|
||||
|
||||
Fri Jan 4 17:23:49 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||
|
||||
* misc/ruby-mode.el (ruby-forward-string): forward a string. [new]
|
||||
|
|
2
range.c
2
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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче