[svn:parrot] r46392 - branches/codestring/src/pmc

coke at svn.parrot.org coke at svn.parrot.org
Fri May 7 15:36:21 UTC 2010


Author: coke
Date: Fri May  7 15:36:21 2010
New Revision: 46392
URL: https://trac.parrot.org/parrot/changeset/46392

Log:
use right length-checking mechanism

Modified:
   branches/codestring/src/pmc/codestring.pmc

Modified: branches/codestring/src/pmc/codestring.pmc
==============================================================================
--- branches/codestring/src/pmc/codestring.pmc	Fri May  7 15:35:45 2010	(r46391)
+++ branches/codestring/src/pmc/codestring.pmc	Fri May  7 15:36:21 2010	(r46392)
@@ -122,7 +122,7 @@
                     /* remaining string can be added as is. */
                     VTABLE_push_string(INTERP, stringbuilder,
                         Parrot_str_substr(INTERP, fmt, pos,
-                            Parrot_str_byte_length(INTERP, fmt) -pos));
+                            Parrot_str_length(INTERP, fmt) -pos));
                     }
                 break;
             }


More information about the parrot-commits mailing list