[svn:parrot] r46389 - trunk/src/pmc

bacek at svn.parrot.org bacek at svn.parrot.org
Fri May 7 15:00:41 UTC 2010


Author: bacek
Date: Fri May  7 15:00:40 2010
New Revision: 46389
URL: https://trac.parrot.org/parrot/changeset/46389

Log:
Fix usage of str_length in CodeString.lineof.

Modified:
   trunk/src/pmc/codestring.pmc

Modified: trunk/src/pmc/codestring.pmc
==============================================================================
--- trunk/src/pmc/codestring.pmc	Fri May  7 14:57:38 2010	(r46388)
+++ trunk/src/pmc/codestring.pmc	Fri May  7 15:00:40 2010	(r46389)
@@ -188,7 +188,7 @@
         linepos = Parrot_pmc_new(INTERP, enum_class_ResizableIntegerArray);
         /* get the string itself */
         GET_ATTR_str_val(INTERP, SELF, str);
-        eos  = Parrot_str_byte_length(INTERP, str);
+        eos  = Parrot_str_length(INTERP, str);
         /* find the first newline, if any */
         jpos = Parrot_str_find_cclass(INTERP, enum_cclass_newline,
                                       str, 0, eos);


More information about the parrot-commits mailing list