aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorJovi Zhang <[email protected]>2011-11-29 02:04:04 +0800
committerHenrik Nord <[email protected]>2011-12-06 09:56:02 +0100
commita94aded8c179c278066c3d86f8878b0c1f3e8f73 (patch)
treeb46ef4bc710807e640a1817ccfa1f45753988bd5 /erts
parentc7effd14268d2058cfd83fa847bc3692cb30a7fc (diff)
downloadotp-a94aded8c179c278066c3d86f8878b0c1f3e8f73.tar.gz
otp-a94aded8c179c278066c3d86f8878b0c1f3e8f73.tar.bz2
otp-a94aded8c179c278066c3d86f8878b0c1f3e8f73.zip
erts: change SENDFILE_CHUNK_SIZE from signed to unsigned
It's reasonable to use UL in SENDFILE_CHUNK_SIZE
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/drivers/unix/unix_efile.c2
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 72911641d3..eb2c5f58a5 100644
--- a/erts/emulator/drivers/unix/unix_efile.c
+++ b/erts/emulator/drivers/unix/unix_efile.c
@@ -1469,7 +1469,7 @@ efile_fadvise(Efile_error* errInfo, int fd, Sint64 offset,
}
#ifdef HAVE_SENDFILE
-#define SENDFILE_CHUNK_SIZE ((1 << 30) -1)
+#define SENDFILE_CHUNK_SIZE ((1UL << 30) -1)
/*
* sendfile: The implementation of the sendfile system call varies