]> git.imager.perl.org - imager.git/commitdiff
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 4330fef38edb76eab6e3c86c7095a88eb0ee3709..08c200c7731416c188d458a03471795c93861325 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 f6b5688c0d560a06427828f82445016e6503f6c4..52ad53cb8a96e088bb95641e2495c42bb8c0bcfc 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