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:19 UTC
svn commit: r584584 - /apr/apr/trunk/network_io/unix/inet_pton.c
Author: wrowe
Date: Sun Oct 14 12:16:18 2007
New Revision: 584584
URL: http://svn.apache.org/viewvc?rev=584584&view=rev
Log:
Silence an emit for P64 and LP64 platforms, where int can't
represent a pointer delta.
Modified:
apr/apr/trunk/network_io/unix/inet_pton.c
Modified: apr/apr/trunk/network_io/unix/inet_pton.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/network_io/unix/inet_pton.c?rev=584584&r1=584583&r2=584584&view=diff
==============================================================================
--- apr/apr/trunk/network_io/unix/inet_pton.c (original)
+++ apr/apr/trunk/network_io/unix/inet_pton.c Sun Oct 14 12:16:18 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];