[svn:parrot] r45437 - branches/immutable_strings_part1/src/pmc

bacek at svn.parrot.org bacek at svn.parrot.org
Wed Apr 7 22:49:05 UTC 2010


Author: bacek
Date: Wed Apr  7 22:49:05 2010
New Revision: 45437
URL: https://trac.parrot.org/parrot/changeset/45437

Log:
Fix *Handle.mode functions to return correct result

Modified:
   branches/immutable_strings_part1/src/pmc/filehandle.pmc
   branches/immutable_strings_part1/src/pmc/stringhandle.pmc

Modified: branches/immutable_strings_part1/src/pmc/filehandle.pmc
==============================================================================
--- branches/immutable_strings_part1/src/pmc/filehandle.pmc	Wed Apr  7 22:48:53 2010	(r45436)
+++ branches/immutable_strings_part1/src/pmc/filehandle.pmc	Wed Apr  7 22:49:05 2010	(r45437)
@@ -618,9 +618,9 @@
 */
 
     METHOD mode() {
-        STRING *mode, *mode_copy;
+        STRING *mode;
         GET_ATTR_mode(INTERP, SELF, mode);
-        RETURN(STRING *mode_copy);
+        RETURN(STRING *mode);
     }
 
 

Modified: branches/immutable_strings_part1/src/pmc/stringhandle.pmc
==============================================================================
--- branches/immutable_strings_part1/src/pmc/stringhandle.pmc	Wed Apr  7 22:48:53 2010	(r45436)
+++ branches/immutable_strings_part1/src/pmc/stringhandle.pmc	Wed Apr  7 22:49:05 2010	(r45437)
@@ -462,9 +462,9 @@
 */
 
     METHOD mode() {
-        STRING *mode, *mode_copy;
+        STRING *mode;
         GET_ATTR_mode(INTERP, SELF, mode);
-        RETURN(STRING *mode_copy);
+        RETURN(STRING *mode);
     }
 
 /*


More information about the parrot-commits mailing list