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

bacek at svn.parrot.org bacek at svn.parrot.org
Tue May 11 12:54:12 UTC 2010


Author: bacek
Date: Tue May 11 12:54:11 2010
New Revision: 46507
URL: https://trac.parrot.org/parrot/changeset/46507

Log:
Fix DRY violation in StringBuilder.set_pmc

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

Modified: branches/codestring/src/pmc/stringbuilder.pmc
==============================================================================
--- branches/codestring/src/pmc/stringbuilder.pmc	Tue May 11 12:16:52 2010	(r46506)
+++ branches/codestring/src/pmc/stringbuilder.pmc	Tue May 11 12:54:11 2010	(r46507)
@@ -207,7 +207,7 @@
         SET_ATTR_buffer(INTERP, SELF, tmp);
     }
     VTABLE void set_pmc(PMC *s) {
-        SET_ATTR_buffer(INTERP, SELF, VTABLE_get_string(INTERP, s));
+        SELF.set_string_native(VTABLE_get_string(INTERP, s));
     }
 
 


More information about the parrot-commits mailing list