mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* string.c (rb_str_index): wrong increment for non alphanumeric
string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
37b6805c7a
commit
40bb53ceb1
4 changed files with 9 additions and 4 deletions
|
|
@ -17,6 +17,11 @@ Tue Oct 16 00:07:06 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
|||
* parse.y (yylex): disallow alpha-numeric and mbchar for
|
||||
terminator of %string.
|
||||
|
||||
Mond Oct 15 18:00:05 2001 Pit Capitain <pit@capitain.de>
|
||||
|
||||
* string.c (rb_str_index): wrong increment for non alphanumeric
|
||||
string.
|
||||
|
||||
Wed Oct 10 03:11:47 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* parse.y (parse_quotedwords): %w(...) is not a string.
|
||||
|
|
|
|||
|
|
@ -290,7 +290,7 @@ class Complex < Numeric
|
|||
end
|
||||
|
||||
def hash
|
||||
@real ^ @image
|
||||
@real.hash ^ @image.hash
|
||||
end
|
||||
|
||||
def inspect
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@
|
|||
(ruby-mark-defun)
|
||||
(save-restriction
|
||||
(narrow-to-region (region-beginning) (region-end))
|
||||
(while (re-search-forward "^\\s *def\\s *\\([^(\n ]+\\)" nil t)
|
||||
(while (re-search-forward "^\\s *def\\s *\\([^(\n ]+\\)" nil 'move)
|
||||
(setq method-begin (match-beginning 1))
|
||||
(setq method-name (buffer-substring method-begin (match-end 1)))
|
||||
(push (cons (concat class-name "#" method-name) (match-beginning 0)) index-alist))))
|
||||
|
|
|
|||
4
string.c
4
string.c
|
|
@ -824,8 +824,8 @@ rb_str_succ(orig)
|
|||
sbeg = RSTRING(str)->ptr; s = sbeg + RSTRING(str)->len - 1;
|
||||
c = '\001';
|
||||
while (sbeg <= s) {
|
||||
*s += 1;
|
||||
if (*s-- != 0) break;
|
||||
if ((*s += 1) != 0) break;
|
||||
s--;
|
||||
}
|
||||
}
|
||||
if (s < sbeg) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue