Fix msvc warnings

This commit is contained in:
Bart van Strien
2012-05-30 19:30:16 +02:00
parent b3ce2b4dd7
commit cab543764d
+2 -2
View File
@@ -286,7 +286,7 @@ _GLIBCXX_END_NAMESPACE
#endif // LOVE_LEGENDARY_LIBSTDCXX_HACK
extern "C" LOVE_EXPORT int luaopen_love_boot(lua_State *L)
extern "C" int luaopen_love_boot(lua_State *L)
{
if (luaL_loadbuffer(L, (const char *)love::boot_lua, sizeof(love::boot_lua), "boot.lua") == 0)
lua_call(L, 0, 1);
@@ -357,7 +357,7 @@ extern "C" LOVE_EXPORT int lovemain(int argc, char ** argv)
int retval = 0;
if (lua_isnumber(L, 1))
retval = lua_tonumber(L, 1);
retval = (int) lua_tonumber(L, 1);
lua_close(L);