apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r584585 - /apr/apr/branches/1.2.x/network_io/unix/inet_pton.c
Date Sun, 14 Oct 2007 19:16:49 GMT
Author: wrowe
Date: Sun Oct 14 12:16:49 2007
New Revision: 584585

URL: http://svn.apache.org/viewvc?rev=584585&view=rev
Log:
Silence an emit for P64 and LP64 platforms, where int can't
represent a pointer delta.

Backport: 584584

Modified:
    apr/apr/branches/1.2.x/network_io/unix/inet_pton.c

Modified: apr/apr/branches/1.2.x/network_io/unix/inet_pton.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/network_io/unix/inet_pton.c?rev=584585&r1=584584&r2=584585&view=diff
==============================================================================
--- apr/apr/branches/1.2.x/network_io/unix/inet_pton.c (original)
+++ apr/apr/branches/1.2.x/network_io/unix/inet_pton.c Sun Oct 14 12:16:49 2007
@@ -223,8 +223,8 @@
 		 * Since some memmove()'s erroneously fail to handle
 		 * overlapping regions, we'll do the shift by hand.
 		 */
-		const int n = tp - colonp;
-		int i;
+		const apr_ssize_t n = tp - colonp;
+		apr_ssize_t i;
 
 		for (i = 1; i <= n; i++) {
 			endp[- i] = colonp[n - i];



Mime
View raw message