You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2012/09/09 22:04:16 UTC
git commit: Fix the Lua build on Ubuntu
Updated Branches:
refs/heads/master 81aa9b51c -> dc7f57327
Fix the Lua build on Ubuntu
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/dc7f5732
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/dc7f5732
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/dc7f5732
Branch: refs/heads/master
Commit: dc7f5732721512dacb13bea95a281ceee613260e
Parents: 81aa9b5
Author: James Peach <jp...@apache.org>
Authored: Sun Sep 9 13:04:07 2012 -0700
Committer: James Peach <jp...@apache.org>
Committed: Sun Sep 9 13:04:07 2012 -0700
----------------------------------------------------------------------
plugins/experimental/lua/hook.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/dc7f5732/plugins/experimental/lua/hook.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/lua/hook.cc b/plugins/experimental/lua/hook.cc
index 464d901..46d91d4 100644
--- a/plugins/experimental/lua/hook.cc
+++ b/plugins/experimental/lua/hook.cc
@@ -510,8 +510,8 @@ LuaHookApiInit(lua_State * lua)
HttpHookDemuxTable.txn[i] = TSContCreate(LuaDemuxTxnHook, NULL);
HttpHookDemuxTable.ssn[i] = TSContCreate(LuaDemuxSsnHook, NULL);
// And keep track of which hook each continuation was allocated for.
- TSContDataSet(HttpHookDemuxTable.txn[i], (void *)i);
- TSContDataSet(HttpHookDemuxTable.ssn[i], (void *)i);
+ TSContDataSet(HttpHookDemuxTable.txn[i], (void *)(uintptr_t)i);
+ TSContDataSet(HttpHookDemuxTable.ssn[i], (void *)(uintptr_t)i);
// Note that we allocate the global continuation table lazily so that we know when to add the hook.
}