FS-7966: fix more msvc 2015 build warnings.

This commit is contained in:
Mike Jerris
2015-09-02 13:06:29 -04:00
parent 08f634b215
commit 46c0d05216
20 changed files with 68 additions and 47 deletions
+1 -1
View File
@@ -1405,7 +1405,7 @@ SWIGINTERN int SWIG_Lua_class_tostring(lua_State* L)
/* there should be 1 param passed in
(1) userdata (not the metatable) */
assert(lua_isuserdata(L,1)); /* just in case */
unsigned long userData = (unsigned long)lua_touserdata(L,1); /* get the userdata address for later */
unsigned long userData = (unsigned long)(intptr_t)lua_touserdata(L,1); /* get the userdata address for later */
lua_getmetatable(L,1); /* get the meta table */
assert(lua_istable(L,-1)); /* just in case */