ocaml_bitstring_extract_fastpath_int##size##_##endian##_##signed \
(value strv, value offv) \
{ \
- type *ptr = (type *) ((void *) String_val (strv) + Int_val (offv)); \
+ type *ptr = (type *) ((char *) String_val (strv) + Int_val (offv)); \
type r; \
memcpy(&r, ptr, sizeof(r)); \
swap_##endian(size,r); \
{ \
CAMLparam2 (strv, offv); \
CAMLlocal1 (rv); \
- type *ptr = (type *) ((void *) String_val (strv) + Int_val (offv)); \
+ type *ptr = (type *) ((char *) String_val (strv) + Int_val (offv)); \
type r; \
memcpy(&r, ptr, sizeof(r)); \
swap_##endian(size,r); \