trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iga...@apache.org
Subject git commit: TS-1690: build-fix for arm/ubuntu/gcc-4.2
Date Mon, 04 Feb 2013 17:33:58 GMT
Updated Branches:
  refs/heads/master 5c0ead4b2 -> 90760ba5a


TS-1690: build-fix for arm/ubuntu/gcc-4.2

again, we static_cast to long int, as it's what the FMT expects, and
it's the bigger type.


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

Branch: refs/heads/master
Commit: 90760ba5a12de1db9c5464e4b16a9558915b47fa
Parents: 5c0ead4
Author: Igor Galić <i.galic@brainsware.org>
Authored: Mon Feb 4 18:32:44 2013 +0100
Committer: Igor Galić <i.galic@brainsware.org>
Committed: Mon Feb 4 18:32:44 2013 +0100

----------------------------------------------------------------------
 plugins/experimental/esi/serverIntercept.cc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/90760ba5/plugins/experimental/esi/serverIntercept.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/esi/serverIntercept.cc b/plugins/experimental/esi/serverIntercept.cc
index e8fc464..f83d7a4 100644
--- a/plugins/experimental/esi/serverIntercept.cc
+++ b/plugins/experimental/esi/serverIntercept.cc
@@ -168,7 +168,7 @@ handleRead(SContData *cont_data, bool &read_complete) {
           }
           if (endptr - data) {
             TSDebug(DEBUG_TAG, "[%s] Appending %ld bytes to body", __FUNCTION__, endptr -
data);
-            cont_data->body.append(data, endptr - data);
+            static_cast<long int>(cont_data->body.append(data, endptr - data));
           }
           cont_data->req_hdr_parsed = true;
         }
@@ -194,7 +194,7 @@ handleRead(SContData *cont_data, bool &read_complete) {
   } else {
     read_complete = false;
     TSDebug(DEBUG_TAG, "[%s] Reenabling input vio as %ld bytes still need to be read",
-             __FUNCTION__, cont_data->req_content_len - cont_data->body.size());
+             __FUNCTION__, static_cast<long int>(cont_data->req_content_len - cont_data->body.size()));
     TSVIOReenable(cont_data->input.vio);
   }
   return true;


Mime
View raw message