You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2007/10/14 21:16:49 UTC

svn commit: r584585 - /apr/apr/branches/1.2.x/network_io/unix/inet_pton.c

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];