Use a pre-increment in a for loop of MainTranspile.cpp.
This commit is contained in:
parent
abe3a7b418
commit
a8b2f77dd6
|
@ -8,7 +8,7 @@ pair<LANGUAGE, bool> validLanguage(const string& it) {
|
||||||
const string languages[3] = {".lua", ".js", ".py"};
|
const string languages[3] = {".lua", ".js", ".py"};
|
||||||
LANGUAGE selected = LUA;
|
LANGUAGE selected = LUA;
|
||||||
bool valid = false;
|
bool valid = false;
|
||||||
for (unsigned short i = 0; (i < languages->size()); i++) {
|
for (unsigned short i = 0; (i < languages->size()); ++i) {
|
||||||
if (it == languages[i]) {
|
if (it == languages[i]) {
|
||||||
selected = static_cast<LANGUAGE>(i + 2);
|
selected = static_cast<LANGUAGE>(i + 2);
|
||||||
valid = true;
|
valid = true;
|
||||||
|
|
Loading…
Reference in New Issue