On Jul 21, 2011, at 10:41 AM, Andy Dougherty wrote: > Is there any reason to assume that an arbitrary pointer cast > to a (Parrot_Int) will be positive? I'd think a simple test that the > pointer is non-NULL would be sufficient and appropriate. That is, I'd > have been tempted to write it: > > void *ptr; > ptr = Parrot_PMC_get_pointer(interp, pmc); > if (ptr) > Parrot_printf(interp,"Got pointer!\n"); > > But perhaps there's more to the story.
Have you tried making that change? Does that make the tests pass? IIRC, Parrot_Ints are signed, so pointers into the top half of the address space would appear negative. Perhaps OpenBSD's heap is normally allocated above that mark? ~~ Brian _______________________________________________ http://lists.parrot.org/mailman/listinfo/parrot-dev
