From 8582888fbed7903eb41db4e1b4ad2ef7b70912fb Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Fri, 10 Feb 2017 18:20:33 +0000 Subject: fix cast --- src/compress.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compress.c b/src/compress.c index fce28507..a4815c22 100644 --- a/src/compress.c +++ b/src/compress.c @@ -35,7 +35,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: compress.c,v 1.102 2017/02/10 18:14:01 christos Exp $") +FILE_RCSID("@(#)$File: compress.c,v 1.103 2017/02/10 18:20:33 christos Exp $") #endif #include "magic.h" @@ -94,7 +94,7 @@ static int zlibcmp(const unsigned char *buf) { unsigned short x = 1; - unsigned char *s = CCAST(unsigned char *, &x); + unsigned char *s = CAST(unsigned char *, CAST(void *, &x)); if ((buf[0] & 0xf) != 8 || (buf[0] & 0x80) != 0) return 0; -- cgit v1.2.1