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/03 13:46:41 UTC

git commit: TS-1682 lua plugin compile breaks on FreeBSD.

Updated Branches:
  refs/heads/master afe372a6f -> c905616be


TS-1682 lua plugin compile breaks on FreeBSD.

add a static_cast to fix this "warning: comparison between signed and
unsigned integer expressions"


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

Branch: refs/heads/master
Commit: c905616be44a70d8c81b1bee2b0210990cfd0db6
Parents: afe372a
Author: Igor Galić <i....@brainsware.org>
Authored: Sun Feb 3 13:45:10 2013 +0100
Committer: Igor Galić <i....@brainsware.org>
Committed: Sun Feb 3 13:45:10 2013 +0100

----------------------------------------------------------------------
 plugins/experimental/lua/hook.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/c905616b/plugins/experimental/lua/hook.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/lua/hook.cc b/plugins/experimental/lua/hook.cc
index 46d91d4..7b8ed66 100644
--- a/plugins/experimental/lua/hook.cc
+++ b/plugins/experimental/lua/hook.cc
@@ -59,7 +59,7 @@ HttpHookName(TSHttpHookID hookid)
     "HTTP_POST_REMAP_HOOK",
   };
 
-  if (hookid >= 0 && hookid < countof(names)) {
+  if (hookid >= 0 && hookid < static_cast<TSHttpHookID>(countof(names))) {
     return names[hookid];
   }