Andrew Talbot wrote:
Don't remove casts from macros like this as they then won't be safe if the type that is passed in is changed to something else (like void *).
Robert Shearman wrote:
*)((char*)(ptr)+(arena)))
I think this would give a compile error but more fatal could be if someone happens to pass in a variable that was declared like
long *ptr;
Then the offset calculation would be all wrong.
Rolf Kalbermatter