summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorMichieru <Michieru@users.noreply.github.com>2015-05-20 10:34:15 +0200
committerMichieru <Michieru@users.noreply.github.com>2015-05-20 10:34:15 +0200
commitfb4da089ffee25947a55b13ed46c86e3865629cd (patch)
tree103bd26eff615a9effa46dca2b53ac6b635e265c /src/common
parentf1da92cc30165f9f57a39733e45f1178b5e70501 (diff)
downloadhercules-fb4da089ffee25947a55b13ed46c86e3865629cd.tar.gz
hercules-fb4da089ffee25947a55b13ed46c86e3865629cd.tar.bz2
hercules-fb4da089ffee25947a55b13ed46c86e3865629cd.tar.xz
hercules-fb4da089ffee25947a55b13ed46c86e3865629cd.zip
* Fixed a compile error.
Thanks to Haru
Diffstat (limited to 'src/common')
-rw-r--r--src/common/cbasetypes.h2
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 */