From fb4da089ffee25947a55b13ed46c86e3865629cd Mon Sep 17 00:00:00 2001 From: Michieru Date: Wed, 20 May 2015 10:34:15 +0200 Subject: * Fixed a compile error. Thanks to Haru --- src/common/cbasetypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/common/cbasetypes.h b/src/common/cbasetypes.h index dda9c8c42..a0fa77fb5 100644 --- a/src/common/cbasetypes.h +++ b/src/common/cbasetypes.h @@ -423,6 +423,6 @@ typedef char bool; #define BEGIN_ZEROED_BLOCK int8 HERC__zeroed_block_BEGIN #define END_ZEROED_BLOCK int8 HERC__zeroed_block_END #define ZEROED_BLOCK_POS(x) (&(x)->HERC__zeroed_block_BEGIN) -#define ZEROED_BLOCK_SIZE(x) ((void*)&((x)->HERC__zeroed_block_END) - (void*)&((x)->HERC__zeroed_block_BEGIN) + sizeof((x)->HERC__zeroed_block_END)) +#define ZEROED_BLOCK_SIZE(x) ((char*)&((x)->HERC__zeroed_block_END) - (char*)&((x)->HERC__zeroed_block_BEGIN) + sizeof((x)->HERC__zeroed_block_END)) #endif /* COMMON_CBASETYPES_H */ -- cgit v1.2.3-70-g09d2