Use type cast not void* but char*. Don't substiture void pointers.

This commit is contained in:
Masaki Muranaka
2013-03-09 00:12:19 +09:00
parent faa1e5670a
commit 07017a4188
+1 -1
View File
@@ -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