Skip to content

Commit 95a58dc

Browse files
committed
Fix compiler warning
1 parent 355f8da commit 95a58dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib_eio_linux/eio_stubs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ CAMLprim value caml_eio_getrandom(value v_ba, value v_off, value v_len) {
101101
ssize_t off = (ssize_t)Long_val(v_off);
102102
ssize_t len = (ssize_t)Long_val(v_len);
103103
do {
104-
void *buf = Caml_ba_data_val(v_ba) + off;
104+
void *buf = (char *)Caml_ba_data_val(v_ba) + off;
105105
caml_enter_blocking_section();
106106
#if __GLIBC__ > 2 || __GLIBC_MINOR__ > 24
107107
ret = getrandom(buf, len, 0);

0 commit comments

Comments
 (0)