<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Thank you, I have included this patch in 'pu'.<br>
<br>
It is however unlikely that it will be included in the R15 release<br>
Thank you for the contribution!<br>
<br>
<br>
On 12/06/2011 07:50 AM, Jovi Zhang wrote:
<blockquote
cite="mid:CACV3sbJ6Mk-yk0TRNJLxCQLkn04pwrMLGSL-rwmwNpv+4xoVhA@mail.gmail.com"
type="cite">
<pre wrap="">>From 918d76da1a8becd231bea92cbc26358dd5363ddf Mon Sep 17 00:00:00 2001
From: Jovi Zhang <a class="moz-txt-link-rfc2396E" href="mailto:bookjovi@gmail.com"><bookjovi@gmail.com></a>
Date: Tue, 29 Nov 2011 02:04:04 +0800
Subject: [PATCH] erts: change SENDFILE_CHUNK_SIZE from signed to unsigned
It's reasonable to use UL in SENDFILE_CHUNK_SIZE
---
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 7291164..eb2c5f5 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
--
1.7.2.3
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
erlang-patches mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-patches@erlang.org">erlang-patches@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-patches">http://erlang.org/mailman/listinfo/erlang-patches</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
/Henrik Nord Erlang/OTP</pre>
</body>
</html>