You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sh...@apache.org on 2009/12/14 12:21:05 UTC

svn commit: r890274 - /webservices/axis2/trunk/c/guththila/src/guththila_xml_parser.c

Author: shankar
Date: Mon Dec 14 11:21:04 2009
New Revision: 890274

URL: http://svn.apache.org/viewvc?rev=890274&view=rev
Log:
Fixing warnings for 64bit compilation

Modified:
    webservices/axis2/trunk/c/guththila/src/guththila_xml_parser.c

Modified: webservices/axis2/trunk/c/guththila/src/guththila_xml_parser.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/src/guththila_xml_parser.c?rev=890274&r1=890273&r2=890274&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/src/guththila_xml_parser.c (original)
+++ webservices/axis2/trunk/c/guththila/src/guththila_xml_parser.c Mon Dec 14 11:21:04 2009
@@ -67,7 +67,7 @@
 \
     if(!result_found)\
     {\
-        int index = m->next++ - previous_size;\
+        size_t index = m->next++ - previous_size;\
         if(index < data_size)\
         {\
             c = buffer[index];\
@@ -697,8 +697,8 @@
     int c = -1;
     guththila_attr_t * attr = NULL;
     int size = 0, i = 0, nmsp_counter, loop = 0, white_space = 0;
-    int data_size = -1;
-    int previous_size = -1;
+    size_t data_size = -1;
+    size_t previous_size = -1;
     guththila_char_t *buffer = NULL;
 
     /* Need to release the resources for attributes */
@@ -1053,7 +1053,7 @@
                         if(buffer)
                         {
                             guththila_char_t *pos = NULL;
-                            int index = m->next - previous_size;
+                            size_t index = m->next - previous_size;
                             pos = (guththila_char_t*)memchr(buffer + index, '<', data_size - index);
                             if(pos)
                             {
@@ -1111,8 +1111,8 @@
     int c = -1;
     int quote = -1;
     int nc = -1;
-    int data_size = -1;
-    int previous_size = -1;
+    size_t data_size = -1;
+    size_t previous_size = -1;
     guththila_char_t *buffer = NULL;
     if(3 == guththila_next_no_char(m, GUTHTHILA_EOF, c_arra, 3, env) && 'x' == c_arra[0] && 'm'
         == c_arra[1] && 'l' == c_arra[2])