Use a pre-increment in a for loop of MainTranspile.cpp.

This commit is contained in:
Username404-59 2021-04-24 17:21:30 +02:00
parent abe3a7b418
commit a8b2f77dd6
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ pair<LANGUAGE, bool> validLanguage(const string& it) {
const string languages[3] = {".lua", ".js", ".py"};
LANGUAGE selected = LUA;
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]) {
selected = static_cast<LANGUAGE>(i + 2);
valid = true;