mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Use type cast not void* but char*. Don't substiture void pointers.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user