random warning fixes
[fceu.git] / cart.c
diff --git a/cart.c b/cart.c
index b159f39..909506a 100644 (file)
--- a/cart.c
+++ b/cart.c
@@ -307,7 +307,7 @@ void FASTAPASS(2) setchr8r(int r, unsigned int V)
   if(CHRram[r])
    PPUCHRRAM|=(255);
   else
   if(CHRram[r])
    PPUCHRRAM|=(255);
   else
-   PPUCHRRAM&=~(255);
+   PPUCHRRAM&=0;
 }
 
 void FASTAPASS(2) setchr1(unsigned int A, unsigned int V)
 }
 
 void FASTAPASS(2) setchr1(unsigned int A, unsigned int V)