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/05/11 06:01:19 UTC

[23/32] git commit: Convert to bool with lua_toboolean

Convert to bool with lua_toboolean


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

Branch: refs/heads/jpeach/lua
Commit: 455c1e78359a32861c1d54f919259adea64a935a
Parents: 1a51555
Author: James Peach <jp...@apache.org>
Authored: Tue Apr 10 20:24:06 2012 -0700
Committer: James Peach <jp...@apache.org>
Committed: Thu May 10 20:23:41 2012 -0700

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


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/455c1e78/plugins/lua/lua.cc
----------------------------------------------------------------------
diff --git a/plugins/lua/lua.cc b/plugins/lua/lua.cc
index 0accbb5..b08bb53 100644
--- a/plugins/lua/lua.cc
+++ b/plugins/lua/lua.cc
@@ -73,7 +73,7 @@ LuaPluginInit(lua_State * lua)
   }
 
   // Return type is bool; check it and pop it.
-  if (lua_isboolean(lua, 1) && lua_isboolean(lua, 1)) {
+  if (lua_isboolean(lua, 1) && lua_toboolean(lua, 1)) {
     status = TS_SUCCESS;
   }