From 1752ce2b897bbdc418f437f21ef5f23c1c9296bd Mon Sep 17 00:00:00 2001 From: bert hubert Date: Thu, 17 Dec 2015 11:32:50 +0100 Subject: [PATCH] silence a luawrapper warning. Hope I got it right. --- ext/luawrapper/include/LuaContext.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/luawrapper/include/LuaContext.hpp b/ext/luawrapper/include/LuaContext.hpp index 0794b2e81..f247eef7a 100644 --- a/ext/luawrapper/include/LuaContext.hpp +++ b/ext/luawrapper/include/LuaContext.hpp @@ -2500,7 +2500,7 @@ struct LuaContext::Reader< static auto read(lua_State* state, int index) -> boost::optional { - if (!lua_isnumber(state, index) != 0 || fmod(lua_tonumber(state, index), 1.) != 0) + if (!lua_isnumber(state, index) || fmod(lua_tonumber(state, index), 1.) != 0) return boost::none; return static_cast(lua_tointeger(state, index)); } -- 2.40.0