diff options
author | Sverker Eriksson <[email protected]> | 2014-03-25 14:23:45 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2014-03-25 14:23:45 +0100 |
commit | 64ffc509c5069e29c5d172dfcad6655efbeafd9b (patch) | |
tree | d0535851e819b3a89f044c73022b6128511b24e1 | |
parent | 05432fb0eec53cab53670e053f22aa3c3ad61d97 (diff) | |
download | otp-64ffc509c5069e29c5d172dfcad6655efbeafd9b.tar.gz otp-64ffc509c5069e29c5d172dfcad6655efbeafd9b.tar.bz2 otp-64ffc509c5069e29c5d172dfcad6655efbeafd9b.zip |
erts: Fix compile warning in io.c for windows
-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 cd5060ebb3..0480cdf823 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); \ |