diff options
-rw-r--r-- | src/common/cbasetypes.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |