try to fix OSX warnings
authorTony Cook <tony@develop=help.com>
Sun, 31 Mar 2002 10:46:54 +0000 (10:46 +0000)
committerTony Cook <tony@develop=help.com>
Sun, 31 Mar 2002 10:46:54 +0000 (10:46 +0000)
Imager.xs
typemap

index 4330fef..08c200c 100644 (file)
--- a/Imager.xs
+++ b/Imager.xs
@@ -2770,12 +2770,6 @@ i_gradgen(im, ...)
         myfree(ival);
 
 
-void
-i_diff_image(im, im2, mindiff=0)
-    Imager::ImgRaw     im
-    Imager::ImgRaw     im2
-               int     mindiff
-
 void
 i_fountain(im, xa, ya, xb, yb, type, repeat, combine, super_sample, ssample_param, segs)
     Imager::ImgRaw     im
diff --git a/typemap b/typemap
index f6b5688..52ad53c 100644 (file)
--- a/typemap
+++ b/typemap
@@ -14,7 +14,7 @@ HASH                  T_HVREF
 #############################################################################
 INPUT
 T_PTR_NULL
-       if (SvOK($arg)) $var = ($type)SvIV($arg);
+       if (SvOK($arg)) $var = INT2PTR($type,SvIV($arg));
        else $var = NULL
 #############################################################################
 OUTPUT