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/06/12 17:51:37 UTC

[24/50] 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/1d08a67d
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/1d08a67d
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/1d08a67d

Branch: refs/heads/jpeach/lua
Commit: 1d08a67db90d0620ede8f74dd4e159a7ad35b96a
Parents: ce8d011
Author: James Peach <jp...@apache.org>
Authored: Tue Apr 10 20:24:06 2012 -0700
Committer: James Peach <jp...@apache.org>
Committed: Tue Jun 12 08:48:35 2012 -0700

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


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/1d08a67d/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;
   }