Explorar o código

COMP: Remove warnings

Andy Cedilnik %!s(int64=19) %!d(string=hai) anos
pai
achega
97f1c2b5f0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Utilities/cmcompress/cmcompress.c

+ 1 - 1
Utilities/cmcompress/cmcompress.c

@@ -439,7 +439,7 @@ int output(struct cmcompress_stream* cdata, code_int  code)
      * Since code is always >= 8 bits, only need to mask the first
      * hunk on the left.
      */
-    *bp = (*bp & rmask[r_off]) | ((code << r_off) & lmask[r_off]);
+    *bp = (char)((*bp & rmask[r_off]) | ((code << r_off) & lmask[r_off]));
     bp++;
     bits -= (8 - r_off);
     code >>= 8 - r_off;