diff options
author | Sverker Eriksson <[email protected]> | 2014-03-25 16:54:15 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2014-03-25 16:54:15 +0100 |
commit | 6d863e5ffe35aeb1197e3db13df32e1bdce085bb (patch) | |
tree | 97c411278923d492341e61a3d719e0cad1bb51fb /erts | |
parent | ec398c4cab329a599d558440800f0d7e6ca14a27 (diff) | |
parent | 64ffc509c5069e29c5d172dfcad6655efbeafd9b (diff) | |
download | otp-6d863e5ffe35aeb1197e3db13df32e1bdce085bb.tar.gz otp-6d863e5ffe35aeb1197e3db13df32e1bdce085bb.tar.bz2 otp-6d863e5ffe35aeb1197e3db13df32e1bdce085bb.zip |
Merge branch 'sverk/win-warning-io'
* sverk/win-warning-io:
erts: Fix compile warning in io.c for windows
Diffstat (limited to 'erts')
-rw-r--r-- | erts/emulator/beam/io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/io.c b/erts/emulator/beam/io.c index a25716b9b4..edf4a28784 100644 --- a/erts/emulator/beam/io.c +++ b/erts/emulator/beam/io.c @@ -914,8 +914,8 @@ int erts_port_handle_xports(Port *prt) (iov)->iov_base = (ptr); \ (iov)->iov_len = (len); \ if (sizeof((iov)->iov_len) < sizeof(len) \ - /* Check if (len) overflowed (iov)->iov_len */ \ - && ((len) >> (sizeof((iov)->iov_len)*CHAR_BIT)) != 0) { \ + /* Check if (len) overflowed (iov)->iov_len */ \ + && (iov)->iov_len != (len)) { \ goto L_overflow; \ } \ *(bv)++ = (bin); \ |