[svn:parrot] r45787 - trunk/src/runcore

chromatic chromatic at wgz.org
Sun Apr 18 20:35:45 UTC 2010


On Sunday 18 April 2010 at 10:37, mikehh  wrote:


> fix g++ build - add cast
> 
> Modified:
>    trunk/src/runcore/trace.c
> 
> Modified: trunk/src/runcore/trace.c

> --- trunk/src/runcore/trace.c	Sun Apr 18 15:52:47 2010	(r45786)
> +++ trunk/src/runcore/trace.c	Sun Apr 18 17:37:28 2010	(r45787)
> @@ -82,7 +82,7 @@
>      ASSERT_ARGS(trace_class_name)
>  
>      if (PObj_is_class_TEST(pmc)) {
> -        SLOTTYPE * const class_array    = PMC_data_typed(pmc, SLOTTYPE);
> +        SLOTTYPE * const class_array    = (SLOTTYPE *)PMC_data_typed(pmc, 
SLOTTYPE);

This should be instead PMC_data_typed(pmc, SLOTTYPE *) -- then you can remove 
the initial cast. 

-- c


More information about the parrot-dev mailing list