trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iga...@apache.org
Subject git commit: TS-1682 lua plugin compile breaks on FreeBSD.
Date Sun, 03 Feb 2013 12:46:41 GMT
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.galic@brainsware.org>
Authored: Sun Feb 3 13:45:10 2013 +0100
Committer: Igor Galić <i.galic@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];
   }
 


Mime
View raw message