From 03a60e0fc3e356000e94b81402dc530712be2c48 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Wed, 15 Jul 2009 15:16:52 +0000 Subject: [PATCH] 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. --- src/file.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/file.h b/src/file.h index 17a81d98..62e1f1d3 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.120 2009/05/08 17:41:58 christos Exp $ + * @(#)$File: file.h,v 1.121 2009/05/08 23:25:46 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 { -- 2.40.0