Commits

Anonymous committed 935d761

MAINT-3744 fix - i8 tags treated as strings

  • Participants
  • Parent commits f5a5267

Comments (0)

Files changed (1)

File xmlrpc-epi-0.54.1/src/xml_to_xmlrpc.c

 #define ELEM_FAULTCODE      "faultCode"
 #define ELEM_FAULTSTRING    "faultString"
 #define ELEM_I4             "i4"
+#define ELEM_I8             "i8"
 #define ELEM_INT            "int"
 #define ELEM_MEMBER         "member"
 #define ELEM_METHODCALL     "methodCall"
             iter = (xml_element*)Q_Next(&el->children);
          }
         }
-        else if (!strcmp(el->name, ELEM_STRING) || 
+        else if (!strcmp(el->name, ELEM_STRING) ||
+				 !strcmp(el->name, ELEM_I8)     ||		// No <i8> support, but convert to string
                  (!strcmp(el->name, ELEM_VALUE) && Q_Size(&el->children) == 0)) {
          XMLRPC_SetValueString(current_val, el->text.str, el->text.len);
         }