You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ig...@apache.org on 2013/02/04 17:53:56 UTC

git commit: TS-1690: Fix build on arm/Ubuntu/gcc 4.4

Updated Branches:
  refs/heads/master 4351f94ee -> 5c0ead4b2


TS-1690: Fix build on arm/Ubuntu/gcc 4.4

Cast an unsigned to a long int.


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

Branch: refs/heads/master
Commit: 5c0ead4b278926b7b519fde67bc5e2c1cd73b37a
Parents: 4351f94
Author: Igor Galić <i....@brainsware.org>
Authored: Mon Feb 4 17:52:57 2013 +0100
Committer: Igor Galić <i....@brainsware.org>
Committed: Mon Feb 4 17:52:57 2013 +0100

----------------------------------------------------------------------
 .../esi/fetcher/HttpDataFetcherImpl.cc             |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/5c0ead4b/plugins/experimental/esi/fetcher/HttpDataFetcherImpl.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/esi/fetcher/HttpDataFetcherImpl.cc b/plugins/experimental/esi/fetcher/HttpDataFetcherImpl.cc
index aeb8711..ab70a2b 100644
--- a/plugins/experimental/esi/fetcher/HttpDataFetcherImpl.cc
+++ b/plugins/experimental/esi/fetcher/HttpDataFetcherImpl.cc
@@ -112,7 +112,7 @@ HttpDataFetcherImpl::_isFetchEvent(TSEvent event, int &base_event_id) const {
   base_event_id = _getBaseEventId(event);
   if ((base_event_id < 0) || (base_event_id >= static_cast<int>(_page_entry_lookup.size()))) {
     TSDebug(_debug_tag, "[%s] Event id %d not within fetch event id range [%d, %ld)",
-             __FUNCTION__, event, FETCH_EVENT_ID_BASE, FETCH_EVENT_ID_BASE + (_page_entry_lookup.size() * 3));
+             __FUNCTION__, event, FETCH_EVENT_ID_BASE, static_cast<long int>(FETCH_EVENT_ID_BASE + (_page_entry_lookup.size() * 3)));
     return false;
   }
   return true;