Bill Moseley said: > I have a typemap that looks like: ... > $var = ($type)SvIV((SV*)SvRV( $arg )); ... > Aspell.c:98: warning: cast to pointer from integer of different size ... > Is there a better way to write the typemap?
You probably want the INT2PTR macro, which has the nasty cast magic necessary to cast safely between ints and pointers. $var = INT2PTR ($type, SvIV (SvRV ($arg))); > I'm not really clear why this message is showing up now. Change in gcc? No idea. -- muppet <scott at asofyet dot org>