some warnings fixed, nsf fixed, palettes, more code backported
[fceu.git] / video.c
diff --git a/video.c b/video.c
index adcb786..e9d3c2d 100644 (file)
--- a/video.c
+++ b/video.c
@@ -46,8 +46,6 @@ uint8 *XBuf=NULL;
 
 int InitVirtualVideo(void)
 {
- uint32 m;
-
  if(!XBuf)             /* Some driver code may allocate XBuf externally. */
   if(!(XBuf = (uint8*) (FCEU_malloc(320 * 240))))
    return 0;
@@ -238,7 +236,7 @@ int SaveSnapshot(void)
    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;