You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by su...@apache.org on 2014/09/23 18:09:46 UTC

git commit: [TS-2314] - fix build warning

Repository: trafficserver
Updated Branches:
  refs/heads/master 9789d981e -> 242a2ee9c


[TS-2314] - fix build warning


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/242a2ee9
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/242a2ee9
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/242a2ee9

Branch: refs/heads/master
Commit: 242a2ee9ca9aea5e5ad6c8f5e50a6b01a1bf8211
Parents: 9789d98
Author: Sudheer Vinukonda <su...@yahoo-inc.com>
Authored: Tue Sep 23 16:04:37 2014 +0000
Committer: Sudheer Vinukonda <su...@yahoo-inc.com>
Committed: Tue Sep 23 16:04:37 2014 +0000

----------------------------------------------------------------------
 proxy/http/HttpSM.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/242a2ee9/proxy/http/HttpSM.cc
----------------------------------------------------------------------
diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc
index 7d44149..46402f2 100644
--- a/proxy/http/HttpSM.cc
+++ b/proxy/http/HttpSM.cc
@@ -4227,7 +4227,7 @@ HttpSM::parse_range_and_compare(MIMEField *field, int64_t content_length)
       HTTPInfo::FragOffset* frag_offset_tbl = t_state.cache_info.object_read->get_frag_table();
       int frag_offset_cnt = t_state.cache_info.object_read->get_frag_offset_count();
 
-      if (!frag_offset_tbl || (frag_offset_tbl[frag_offset_cnt - 1] < end)) {
+      if (!frag_offset_tbl || (frag_offset_tbl[frag_offset_cnt - 1] < (uint64_t)end)) {
         Debug("http_range", "request range in cache, end %" PRId64 ", frg_offset_cnt %d, frag_size %" PRId64, end, frag_offset_cnt, frag_offset_tbl[frag_offset_cnt - 1]);
         t_state.range_in_cache = false;
       }