[前][次][番号順一覧][スレッド一覧]

ruby-changes:7785

From: akr <ko1@a...>
Date: Fri, 12 Sep 2008 23:21:04 +0900 (JST)
Subject: [ruby-changes:7785] Ruby:r19306 (trunk): * transcode.c (rb_econv_add_transcoder_at): fix loop condition.

akr	2008-09-12 23:20:27 +0900 (Fri, 12 Sep 2008)

  New Revision: 19306

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19306

  Log:
    * transcode.c (rb_econv_add_transcoder_at): fix loop condition.

  Modified files:
    trunk/ChangeLog
    trunk/transcode.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 19305)
+++ ChangeLog	(revision 19306)
@@ -1,3 +1,7 @@
+Fri Sep 12 23:19:41 2008  Tanaka Akira  <akr@f...>
+
+	* transcode.c (rb_econv_add_transcoder_at): fix loop condition.
+
 Fri Sep 12 22:39:46 2008  Tanaka Akira  <akr@f...>
 
 	* transcode.c (decorator_names): extracted from rb_econv_open.
Index: transcode.c
===================================================================
--- transcode.c	(revision 19305)
+++ transcode.c	(revision 19306)
@@ -839,7 +839,7 @@
     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)) {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]