some warnings fixed, nsf fixed, palettes, more code backported
[fceu.git] / video.c
diff --git a/video.c b/video.c
index 397f82e..e9d3c2d 100644 (file)
--- a/video.c
+++ b/video.c
@@ -236,7 +236,7 @@ int SaveSnapshot(void)
    tmp+=16;
   }
 
    tmp+=16;
   }
 
-  if(compress(compmem,&compmemsize,mork,(totallines<<8)+totallines)!=Z_OK)
+  if(compress(compmem,(unsigned long *)&compmemsize,mork,(totallines<<8)+totallines)!=Z_OK)
   {
    if(mal) free(mal);
    goto PNGerr;
   {
    if(mal) free(mal);
    goto PNGerr;