Browse Source

Fix msvc warnings

Bart van Strien 13 years ago
parent
commit
cab543764d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/love.cpp

+ 2 - 2
src/love.cpp

@@ -286,7 +286,7 @@ _GLIBCXX_END_NAMESPACE
 
 
 #endif // LOVE_LEGENDARY_LIBSTDCXX_HACK
 #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)
 	if (luaL_loadbuffer(L, (const char *)love::boot_lua, sizeof(love::boot_lua), "boot.lua") == 0)
 	lua_call(L, 0, 1);
 	lua_call(L, 0, 1);
@@ -357,7 +357,7 @@ extern "C" LOVE_EXPORT int lovemain(int argc, char ** argv)
 	
 	
 	int retval = 0;
 	int retval = 0;
 	if (lua_isnumber(L, 1))
 	if (lua_isnumber(L, 1))
-		retval = lua_tonumber(L, 1);
+		retval = (int) lua_tonumber(L, 1);
 
 
 	lua_close(L);
 	lua_close(L);