[svn:parrot] r45036 - trunk/src/io

petdance at svn.parrot.org petdance at svn.parrot.org
Thu Mar 18 22:14:15 UTC 2010


Author: petdance
Date: Thu Mar 18 22:14:14 2010
New Revision: 45036
URL: https://trac.parrot.org/parrot/changeset/45036

Log:
consting locals

Modified:
   trunk/src/io/api.c

Modified: trunk/src/io/api.c
==============================================================================
--- trunk/src/io/api.c	Thu Mar 18 22:07:17 2010	(r45035)
+++ trunk/src/io/api.c	Thu Mar 18 22:14:14 2010	(r45036)
@@ -369,9 +369,8 @@
         if (length == 0)
             result = Parrot_str_copy(interp, string_orig);
         else {
-            INTVAL orig_length, read_length;
-            read_length = length;
-            orig_length = Parrot_str_byte_length(interp, string_orig);
+            INTVAL read_length = length;
+            const INTVAL orig_length = Parrot_str_byte_length(interp, string_orig);
 
             GETATTR_StringHandle_read_offset(interp, pmc, offset);
 


More information about the parrot-commits mailing list