summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/MirLua/src/mlua_metatable.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/MirLua/src/mlua_metatable.h b/plugins/MirLua/src/mlua_metatable.h
index 64ccf5a77d..b0483a2f10 100644
--- a/plugins/MirLua/src/mlua_metatable.h
+++ b/plugins/MirLua/src/mlua_metatable.h
@@ -27,12 +27,10 @@ private:
template<typename R> static int GetType(R T::*) { return NULL; }
- template<> static int GetType(int T::*) { return LUA_TINTEGER; }
- template<> static int GetType(unsigned int T::*) { return LUA_TINTEGER; }
- template<> static int GetType(long T::*) { return LUA_TINTEGER; }
- template<> static int GetType(unsigned long T::*) { return LUA_TINTEGER; }
- template<> static int GetType(long long T::*) { return LUA_TINTEGER; }
- template<> static int GetType(unsigned long long T::*) { return LUA_TINTEGER; }
+ template<> static int GetType(__int32 T::*) { return LUA_TINTEGER; }
+ template<> static int GetType(unsigned __int32 T::*) { return LUA_TINTEGER; }
+ template<> static int GetType(__int64 T::*) { return LUA_TINTEGER; }
+ template<> static int GetType(unsigned __int64 T::*) { return LUA_TINTEGER; }
template<> static int GetType(char* T::*) { return LUA_TSTRINGA; }
template<> static int GetType(wchar_t* T::*) { return LUA_TSTRINGW; }