Fork HTTPClient and Modfiy code for mbed 6.0

Dependents:   mbed-demo-http-get-json

Revision:
35:d9e2d1c96b75
Parent:
16:1f743885e7de
--- a/data/HTTPMap.cpp	Sun Mar 08 17:50:52 2015 +0000
+++ b/data/HTTPMap.cpp	Thu Aug 06 11:11:31 2015 +0000
@@ -66,13 +66,13 @@
   //URL encode
   char* out = buf;
   const char* in = m_keys[m_pos];
-  if( (m_pos != 0) && (out - buf < len - 1) )
+  if( (m_pos != 0) && ((size_t)(out - buf) < len - 1) )
   {
     *out='&';
     out++;
   }
 
-  while( (*in != '\0') && (out - buf < len - 3) )
+  while( (*in != '\0') && ((size_t)(out - buf) < len - 3) )
   {
     if (std::isalnum(*in) || *in == '-' || *in == '_' || *in == '.' || *in == '~')
     {
@@ -97,14 +97,14 @@
     in++;
   }
 
-  if( out - buf < len - 1 )
+  if( (size_t)(out - buf) < len - 1 )
   {
     *out='=';
     out++;
   }
 
   in = m_values[m_pos];
-  while( (*in != '\0') && (out - buf < len - 3) )
+  while( (*in != '\0') && ((size_t)(out - buf) < len - 3) )
   {
     if (std::isalnum(*in) || *in == '-' || *in == '_' || *in == '.' || *in == '~')
     {