On Wed, Jul 27, 2005 at 10:37:13PM +0100, Nicholas Clark wrote:
> FreeBSD stable compared with where? Some FreeBSD stable perls are compiled
> with -Duse64bitint, which will mean that sizeof(IV) is twice the size
> of sizeof(void *) on x86.
Yep:
-Duse64bitint
use64bitint=define use64bita
On Wed, Jul 27, 2005 at 11:26:52AM -0700, Bill Moseley wrote:
> Works fine on may platforms, but I just tried on FreeBSD 5.4-STABLE
> i386 gcc 3.4.2, perl v5.8.7 I see
> Is there a better way to write the typemap? I'm not really clear
> why this message is showing up now. Change in gcc?
FreeBS
On Wed, Jul 27, 2005 at 02:50:19PM -0400, muppet wrote:
> 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)));
Perfect!
Thanks,
--
Bill Moseley
[EMAIL PROTECTED]
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 nas