fixed some vc++ compiler warnings

This commit is contained in:
Mark Vejvoda
2013-11-14 13:56:05 +00:00
parent e64cdda6da
commit b3a9ad5411
5 changed files with 17 additions and 17 deletions

View File

@@ -870,7 +870,7 @@ Vec2i LuaArguments::getVec2i(int argumentIndex) const{
//printf("xa = %s argumentIndex = %d\n",lua_tostring(luaState, argumentIndex),argumentIndex);
//v.x= luaL_checkint(luaState, argumentIndex);
v.x= lua_tointeger(luaState, argumentIndex);
v.x= (int)lua_tointeger(luaState, argumentIndex);
lua_pop(luaState, 1);
//printf("X = %d\n",v.x);
@@ -879,7 +879,7 @@ Vec2i LuaArguments::getVec2i(int argumentIndex) const{
//printf("ya = %s\n",lua_tostring(luaState, argumentIndex));
//v.y= luaL_checkint(luaState, argumentIndex);
v.y= lua_tointeger(luaState, argumentIndex);
v.y= (int)lua_tointeger(luaState, argumentIndex);
lua_pop(luaState, 1);
//printf("Y = %d\n",v.y);