mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* string.c (rb_str_rindex): must return -1 if unmatched.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
616a47c579
commit
fc2a1ad79f
3 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Tue Aug 6 15:19:39 2002 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* string.c (rb_str_rindex): must return -1 if unmatched.
|
||||||
|
|
||||||
Mon Aug 5 22:41:18 2002 Minero Aoki <aamine@loveruby.net>
|
Mon Aug 5 22:41:18 2002 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
* MANIFEST: add lib/racc/parser.rb.
|
* MANIFEST: add lib/racc/parser.rb.
|
||||||
|
|
1
string.c
1
string.c
|
@ -912,6 +912,7 @@ rb_str_rindex(str, sub, pos)
|
||||||
}
|
}
|
||||||
s--;
|
s--;
|
||||||
}
|
}
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return pos;
|
return pos;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#define RUBY_VERSION "1.7.2"
|
#define RUBY_VERSION "1.7.2"
|
||||||
#define RUBY_RELEASE_DATE "2002-08-01"
|
#define RUBY_RELEASE_DATE "2002-08-06"
|
||||||
#define RUBY_VERSION_CODE 172
|
#define RUBY_VERSION_CODE 172
|
||||||
#define RUBY_RELEASE_CODE 20020801
|
#define RUBY_RELEASE_CODE 20020806
|
||||||
|
|
Loading…
Reference in a new issue