mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* transcode.c (rb_econv_add_transcoder_at): fix loop condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2d80b1695d
commit
c0bd38eb94
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Fri Sep 12 23:19:41 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* transcode.c (rb_econv_add_transcoder_at): fix loop condition.
|
||||
|
||||
Fri Sep 12 22:39:46 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* transcode.c (decorator_names): extracted from rb_econv_open.
|
||||
|
|
|
@ -839,7 +839,7 @@ rb_econv_add_transcoder_at(rb_econv_t *ec, const rb_transcoder *tr, int i)
|
|||
ec->num_trans++;
|
||||
|
||||
if (!SUPPLEMENTAL_CONVERSION(tr->src_encoding, tr->dst_encoding))
|
||||
for (j = ec->num_trans-1; n <= j; j--) {
|
||||
for (j = ec->num_trans-1; i <= j; j--) {
|
||||
rb_transcoding *tc = ec->elems[j].tc;
|
||||
const rb_transcoder *tr2 = tc->transcoder;
|
||||
if (!SUPPLEMENTAL_CONVERSION(tr2->src_encoding, tr2->dst_encoding)) {
|
||||
|
|
Loading…
Reference in a new issue