[Gc] inline allocation

Peter Wang wangp at students.cs.mu.oz.au
Mon Aug 14 23:38:59 PDT 2006


On 2006-08-15, Richard A. O'Keefe <ok at cs.otago.ac.nz> wrote:
> 	 		/* Small counter value, not NULL */ \
> 	-                *my_fl = (ptr_t)my_entry + granules + 1; \
> 	+                *my_fl = (void *)my_entry + granules + 1; \
> 	                 result = default_expr; \
> 
> That can't be right:  it is illegal to add anything to a void*.
> 

Thanks.  It's a bad habit.

Peter


More information about the Gc mailing list