diff options
Diffstat (limited to 'byterun/io.c')
-rw-r--r-- | byterun/io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/byterun/io.c b/byterun/io.c index 595ff3ada..1b2b413c7 100644 --- a/byterun/io.c +++ b/byterun/io.c @@ -143,7 +143,7 @@ static int do_write(int fd, char *p, int n) { int retcode; - Assert(!Is_young(p)); + Assert(!Is_young((value) p)); #ifdef HAS_UI retcode = ui_write(fd, p, n); #else @@ -258,7 +258,7 @@ CAMLexport int do_read(int fd, char *p, unsigned int n) { int retcode; - Assert(!Is_young(p)); + Assert(!Is_young((value) p)); enter_blocking_section(); #ifdef HAS_UI retcode = ui_read(fd, p, n); |