diff options
author | Björn-Egil Dahlberg <[email protected]> | 2013-03-04 18:06:12 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2013-03-04 18:06:12 +0100 |
commit | d0e0ce2aa23f036675288735a43fc6581d79c95c (patch) | |
tree | bb6420318aebf8c4611fbc39ccc299cd48c30117 /erts/emulator/drivers/unix/unix_efile.c | |
parent | 41e849eecd06ebb1472ddfb369243f0b337e0bd7 (diff) | |
download | otp-d0e0ce2aa23f036675288735a43fc6581d79c95c.tar.gz otp-d0e0ce2aa23f036675288735a43fc6581d79c95c.tar.bz2 otp-d0e0ce2aa23f036675288735a43fc6581d79c95c.zip |
erts: Fix void * arithmetic
Diffstat (limited to 'erts/emulator/drivers/unix/unix_efile.c')
-rw-r--r-- | erts/emulator/drivers/unix/unix_efile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/drivers/unix/unix_efile.c b/erts/emulator/drivers/unix/unix_efile.c index 558651fff9..2bd5177be1 100644 --- a/erts/emulator/drivers/unix/unix_efile.c +++ b/erts/emulator/drivers/unix/unix_efile.c @@ -629,7 +629,7 @@ efile_writev(Efile_error* errInfo, /* Where to return error codes */ if (w < iov[cnt].iov_len) { /* Adjust the buffer for next write */ iov[cnt].iov_len -= w; - iov[cnt].iov_base += w; + iov[cnt].iov_base = ((char *)iov[cnt].iov_base) + w; w = 0; break; } else { |