mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* string.c (tr_trans): should not turn on modify flag if no
modification happens. [ruby-dev:34631] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e08f245464
commit
4aa3454607
2 changed files with 3 additions and 1 deletions
|
@ -6,6 +6,9 @@ Sat May 10 22:14:03 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
* string.c (tr_trans): should check src size, not str size.
|
* string.c (tr_trans): should check src size, not str size.
|
||||||
[ruby-dev:34637]
|
[ruby-dev:34637]
|
||||||
|
|
||||||
|
* string.c (tr_trans): should not turn on modify flag if no
|
||||||
|
modification happens. [ruby-dev:34631]
|
||||||
|
|
||||||
Sat May 10 18:11:18 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Sat May 10 18:11:18 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* string.c (rb_str_each_line): zero length record separator should
|
* string.c (rb_str_each_line): zero length record separator should
|
||||||
|
|
1
string.c
1
string.c
|
@ -4331,7 +4331,6 @@ tr_trans(VALUE str, VALUE src, VALUE repl, int sflag)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
save = -1;
|
save = -1;
|
||||||
modify = 1;
|
|
||||||
c = c0;
|
c = c0;
|
||||||
}
|
}
|
||||||
while (t - buf + tlen >= max) {
|
while (t - buf + tlen >= max) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue