summaryrefslogtreecommitdiffhomepage
path: root/src/load.c
diff options
context:
space:
mode:
authorMasaki Muranaka <[email protected]>2013-03-09 00:12:19 +0900
committerMasaki Muranaka <[email protected]>2013-03-09 00:12:19 +0900
commit07017a4188db3c21dc79bb4d83ae38aacb4af788 (patch)
tree52135be2129569b241f8d07d477089e2b0b86563 /src/load.c
parentfaa1e5670ad475e5363f1c1010fddf9902883de9 (diff)
downloadmruby-07017a4188db3c21dc79bb4d83ae38aacb4af788.tar.gz
mruby-07017a4188db3c21dc79bb4d83ae38aacb4af788.zip
Use type cast not void* but char*. Don't substiture void pointers.
Diffstat (limited to 'src/load.c')
-rw-r--r--src/load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/load.c b/src/load.c
index f22e26787..7e58614a7 100644
--- a/src/load.c
+++ b/src/load.c
@@ -16,7 +16,7 @@ static size_t
offset_crc_body()
{
struct rite_binary_header header;
- return ((void*)header.binary_crc - (void*)&header) + sizeof(header.binary_crc);
+ return ((char *)header.binary_crc - (char *)&header) + sizeof(header.binary_crc);
}
static int