Fix warnings in MSVC 2010.

This commit is contained in:
rude
2011-07-24 18:32:11 +02:00
parent 71d4c4a565
commit e1d1ebb2f1
8 changed files with 42 additions and 19 deletions
@@ -926,12 +926,12 @@ namespace opengl
for (int i = 0; i < args; ++i) {
lua_pushnumber(L, i + 1);
lua_rawget(L, 1);
coords[i] = lua_tonumber(L, -1);
coords[i] = luax_tofloat(L, -1);
lua_pop(L, 1);
}
} else {
for (int i = 0; i < args; ++i)
coords[i] = lua_tonumber(L, i + 1);
coords[i] = luax_tofloat(L, i + 1);
}
instance->polyline(coords, args);
@@ -1050,12 +1050,12 @@ namespace opengl
for (int i = 0; i < args; ++i) {
lua_pushnumber(L, i + 1);
lua_rawget(L, 2);
coords[i] = lua_tonumber(L, -1);
coords[i] = luax_tofloat(L, -1);
lua_pop(L, 1);
}
} else {
for (int i = 0; i < args; ++i)
coords[i] = lua_tonumber(L, i + 2);
coords[i] = luax_tofloat(L, i + 2);
}
// make a closed loop