prevent warning from size difference on some platforms
authorTony Cook <tony@develop=help.com>
Thu, 2 Dec 2004 05:26:40 +0000 (05:26 +0000)
committerTony Cook <tony@develop=help.com>
Thu, 2 Dec 2004 05:26:40 +0000 (05:26 +0000)
Imager.xs

index aeae14b905ca59e6991fd07dd0db671ae8ccbd04..d1eb260f321fcc03aae1a69c0b3c39ddebde1419 100644 (file)
--- a/Imager.xs
+++ b/Imager.xs
@@ -2295,7 +2295,7 @@ i_writegif(im,fd,colors,pixdev,fixed)
               sv1=(*(av_fetch(av,i,0)));
                if (sv_derived_from(sv1, "Imager::Color")) {
                  Itmp = SvIV((SV*)SvRV(sv1));
-                 tmp = (i_color*) Itmp;
+                 tmp = INT2PTR(i_color*, Itmp);
                } else croak("Imager: one of the elements of array ref is not of Imager::Color type\n");
                fixed[i]=*tmp;
             }