You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by rj...@apache.org on 2015/09/01 16:10:07 UTC

svn commit: r1700558 - in /tomcat/jk/trunk/native: apache-1.3/mod_jk.c apache-2.0/mod_jk.c

Author: rjung
Date: Tue Sep  1 14:10:07 2015
New Revision: 1700558

URL: http://svn.apache.org/r1700558
Log:
Selence more "loss of precision" compiler warnings.

Modified:
    tomcat/jk/trunk/native/apache-1.3/mod_jk.c
    tomcat/jk/trunk/native/apache-2.0/mod_jk.c

Modified: tomcat/jk/trunk/native/apache-1.3/mod_jk.c
URL: http://svn.apache.org/viewvc/tomcat/jk/trunk/native/apache-1.3/mod_jk.c?rev=1700558&r1=1700557&r2=1700558&view=diff
==============================================================================
--- tomcat/jk/trunk/native/apache-1.3/mod_jk.c (original)
+++ tomcat/jk/trunk/native/apache-1.3/mod_jk.c Tue Sep  1 14:10:07 2015
@@ -3412,13 +3412,13 @@ static int jk_translate(request_rec * r)
                     char *index = clean_uri;
                     char *suffix = strchr(index + 1, '/');
                     if (suffix != NULL) {
-                        int size = suffix - index;
+                        int size = (int)(suffix - index);
                         context_dir = ap_pstrndup(r->pool, index, size);
                         /* Get the context child directory name */
                         index = index + size + 1;
                         suffix = strchr(index, '/');
                         if (suffix != NULL) {
-                            size = suffix - index;
+                            size = (int)(suffix - index);
                             child_dir = ap_pstrndup(r->pool, index, size);
                         }
                         else {

Modified: tomcat/jk/trunk/native/apache-2.0/mod_jk.c
URL: http://svn.apache.org/viewvc/tomcat/jk/trunk/native/apache-2.0/mod_jk.c?rev=1700558&r1=1700557&r2=1700558&view=diff
==============================================================================
--- tomcat/jk/trunk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/jk/trunk/native/apache-2.0/mod_jk.c Tue Sep  1 14:10:07 2015
@@ -3901,7 +3901,7 @@ static int jk_translate(request_rec * r)
                         index = index + size + 1;
                         suffix = strchr(index, '/');
                         if (suffix != NULL) {
-                            size = suffix - index;
+                            size = (int)(suffix - index);
                             child_dir = apr_pstrndup(r->pool, index, size);
                         }
                         else {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org