trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject svn commit: r1087810 - /trafficserver/traffic/trunk/proxy/http/HttpTransactHeaders.cc
Date Fri, 01 Apr 2011 17:07:54 GMT
Author: zwoop
Date: Fri Apr  1 17:07:54 2011
New Revision: 1087810

URL: http://svn.apache.org/viewvc?rev=1087810&view=rev
Log:
Meh, wrong type in comparison...

Modified:
    trafficserver/traffic/trunk/proxy/http/HttpTransactHeaders.cc

Modified: trafficserver/traffic/trunk/proxy/http/HttpTransactHeaders.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/http/HttpTransactHeaders.cc?rev=1087810&r1=1087809&r2=1087810&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/http/HttpTransactHeaders.cc (original)
+++ trafficserver/traffic/trunk/proxy/http/HttpTransactHeaders.cc Fri Apr  1 17:07:54 2011
@@ -1092,7 +1092,7 @@ HttpTransactHeaders::insert_via_header_i
   *via_string++ = ')';
   *via_string = 0;
 
-  ink_assert((via_string - new_via_string) < (sizeof(new_via_string) - 1));
+  ink_assert((size_t)(via_string - new_via_string) < (sizeof(new_via_string) - 1));
   header->value_append(MIME_FIELD_VIA, MIME_LEN_VIA, new_via_string, via_string - new_via_string,
true);
 }
 
@@ -1150,7 +1150,7 @@ HttpTransactHeaders::insert_via_header_i
   *via_string++ = ')';
   *via_string = 0;
 
-  ink_assert((via_string - new_via_string) < (sizeof(new_via_string) - 1));
+  ink_assert((size_t)(via_string - new_via_string) < (sizeof(new_via_string) - 1));
   header->value_append(MIME_FIELD_VIA, MIME_LEN_VIA, new_via_string, via_string - new_via_string,
true);
 }
 



Mime
View raw message