mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Fix warnings in MSVC 2010.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user