aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2014-03-25 14:23:45 +0100
committerSverker Eriksson <[email protected]>2014-03-25 14:23:45 +0100
commit64ffc509c5069e29c5d172dfcad6655efbeafd9b (patch)
treed0535851e819b3a89f044c73022b6128511b24e1 /erts/emulator
parent05432fb0eec53cab53670e053f22aa3c3ad61d97 (diff)
downloadotp-64ffc509c5069e29c5d172dfcad6655efbeafd9b.tar.gz
otp-64ffc509c5069e29c5d172dfcad6655efbeafd9b.tar.bz2
otp-64ffc509c5069e29c5d172dfcad6655efbeafd9b.zip
erts: Fix compile warning in io.c for windows
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/beam/io.c4
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); \