From 98ad45046f4297df02d221d4a5d0d53b89106635 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Fri, 17 Apr 2015 18:24:29 +0000 Subject: [PATCH] lua: disable 64-bit integer setters. Lua only supports the "double" type for now, so storing a 64-bit integer would lose information unless it's encapsulated in a more complex type. I prefer to disable these accessors for now. --- src/lolua/baselua.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lolua/baselua.h b/src/lolua/baselua.h index fe5e7ea6..e9c395cd 100644 --- a/src/lolua/baselua.h +++ b/src/lolua/baselua.h @@ -511,6 +511,8 @@ template<> inline int Var::InnerPush(LuaState* l) Var v = (double)m_value; return v.Return(l); } + +#if 0 //----------------------------------------------------------------------------- template<> inline bool Var::InnerIsValid(LuaState* l, int index) { @@ -525,6 +527,8 @@ template<> inline int Var::InnerPush(LuaState* l) lua_pushinteger(l, m_value); return 1; } +#endif + //----------------------------------------------------------------------------- template<> inline bool Var::InnerIsValid(LuaState* l, int index) { @@ -541,6 +545,7 @@ template<> inline int Var::InnerPush(LuaState* l) Var v = (int64_t)m_value; return v.Return(l); } + //----------------------------------------------------------------------------- template<> inline bool Var::InnerIsValid(LuaState* l, int index) { @@ -555,6 +560,8 @@ template<> inline int Var::InnerPush(LuaState* l) lua_pushunsigned(l, m_value); return 1; } + +#if 0 //----------------------------------------------------------------------------- template<> inline bool Var::InnerIsValid(LuaState* l, int index) { @@ -571,6 +578,8 @@ template<> inline int Var::InnerPush(LuaState* l) Var v = (uint32_t)m_value; return v.Return(l); } +#endif + //----------------------------------------------------------------------------- template<> inline bool Var::InnerIsValid(LuaState* l, int index) {