diff options
| author | Masaki Muranaka <[email protected]> | 2013-03-09 00:12:19 +0900 |
|---|---|---|
| committer | Masaki Muranaka <[email protected]> | 2013-03-09 00:12:19 +0900 |
| commit | 07017a4188db3c21dc79bb4d83ae38aacb4af788 (patch) | |
| tree | 52135be2129569b241f8d07d477089e2b0b86563 | |
| parent | faa1e5670ad475e5363f1c1010fddf9902883de9 (diff) | |
| download | mruby-07017a4188db3c21dc79bb4d83ae38aacb4af788.tar.gz mruby-07017a4188db3c21dc79bb4d83ae38aacb4af788.zip | |
Use type cast not void* but char*. Don't substiture void pointers.
| -rw-r--r-- | src/load.c | 2 |
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 |
