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

bacek at svn.parrot.org bacek at svn.parrot.org
Sat Jun 5 21:32:15 UTC 2010


Author: bacek
Date: Sat Jun  5 21:32:15 2010
New Revision: 47385
URL: https://trac.parrot.org/parrot/changeset/47385

Log:
Fix DRY principe.

Modified:
   trunk/src/pmc/imageio.pmc

Modified: trunk/src/pmc/imageio.pmc
==============================================================================
--- trunk/src/pmc/imageio.pmc	Sat Jun  5 21:31:34 2010	(r47384)
+++ trunk/src/pmc/imageio.pmc	Sat Jun  5 21:32:15 2010	(r47385)
@@ -423,7 +423,7 @@
     VTABLE void mark() {
         PObj * const buffer = (PObj *)(PARROT_IMAGEIO(SELF)->buffer);
         if (buffer)
-            Parrot_gc_mark_PObj_alive(INTERP, (PObj *)(PARROT_IMAGEIO(SELF)->buffer));
+            Parrot_gc_mark_PObj_alive(INTERP, buffer);
         Parrot_gc_mark_PMC_alive(INTERP, PARROT_IMAGEIO(SELF)->todo);
         Parrot_gc_mark_PMC_alive(INTERP, PARROT_IMAGEIO(SELF)->seen);
     }


More information about the parrot-commits mailing list