diff options
author | Björn-Egil Dahlberg <[email protected]> | 2013-03-07 12:25:54 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2013-03-07 12:25:54 +0100 |
commit | 8bbe5fadb386ef50f1efbb9c2938444548b13e09 (patch) | |
tree | e385c3100b4edf55fcbc75bdc79c0da09691316c /erts/emulator/beam/io.c | |
parent | 57a33a31ca0fcb385dd899f4074310d0fbdefda4 (diff) | |
parent | d0e0ce2aa23f036675288735a43fc6581d79c95c (diff) | |
download | otp-8bbe5fadb386ef50f1efbb9c2938444548b13e09.tar.gz otp-8bbe5fadb386ef50f1efbb9c2938444548b13e09.tar.bz2 otp-8bbe5fadb386ef50f1efbb9c2938444548b13e09.zip |
Merge branch 'egil/ansi-pedantic' into maint
Diffstat (limited to 'erts/emulator/beam/io.c')
-rw-r--r-- | erts/emulator/beam/io.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/erts/emulator/beam/io.c b/erts/emulator/beam/io.c index 8c67f731f4..a9771de7ad 100644 --- a/erts/emulator/beam/io.c +++ b/erts/emulator/beam/io.c @@ -5960,7 +5960,7 @@ int driver_outputv(ErlDrvPort ix, char* hbuf, ErlDrvSizeT hlen, binv++; n--; } else { - iov->iov_base += skip; + iov->iov_base = ((char *)(iov->iov_base)) + skip; iov->iov_len -= skip; skip = 0; } @@ -6405,7 +6405,7 @@ int driver_enqv(ErlDrvPort ix, ErlIOVec* vec, ErlDrvSizeT skip) n--; } else { - iov->iov_base += skip; + iov->iov_base = ((char *)(iov->iov_base)) + skip; iov->iov_len -= skip; skip = 0; } @@ -6470,7 +6470,7 @@ int driver_pushqv(ErlDrvPort ix, ErlIOVec* vec, ErlDrvSizeT skip) n--; } else { - iov->iov_base += skip; + iov->iov_base = ((char *)(iov->iov_base)) + skip; iov->iov_len -= skip; skip = 0; } @@ -6529,7 +6529,7 @@ ErlDrvSizeT driver_deq(ErlDrvPort ix, ErlDrvSizeT size) q->v_head++; } else { - q->v_head->iov_base += size; + q->v_head->iov_base = ((char *)(q->v_head->iov_base)) + size; q->v_head->iov_len -= size; size = 0; } |