From: Christos Zoulas Date: Wed, 15 Jul 2009 15:16:52 +0000 (+0000) Subject: do the actual cast in c; although I don't like it because it can hide bugs, X-Git-Tag: FILE5_05~169 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0826acddaf4f32de1c57e93ef9602c02252f0d46;p=file do the actual cast in c; although I don't like it because it can hide bugs, there is one case in compress.c for a void * where it matters. Perhaps I will revert it some other time. --- diff --git a/src/file.h b/src/file.h index ca25aed4..936becab 100644 --- a/src/file.h +++ b/src/file.h @@ -27,7 +27,7 @@ */ /* * file.h - definitions for file(1) program - * @(#)$File: file.h,v 1.121 2009/05/08 23:25:46 christos Exp $ + * @(#)$File: file.h,v 1.122 2009/07/15 15:16:52 christos Exp $ */ #ifndef __file_h__ @@ -301,7 +301,7 @@ struct mlist { #ifdef __cplusplus #define CAST(T, b) static_cast(b) #else -#define CAST(T, b) (b) +#define CAST(T, b) (T)(b) #endif struct level_info {