Use a static cast in the main function.

This commit is contained in:
Username404 2021-04-24 18:23:37 +02:00
parent 85c155fc3b
commit e356ceab0c
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ int main(int argc, char* argv[]) {
string currentArg; string currentArg;
for (signed int i = 0; i < argc; ++i) for (signed int i = 0; i < argc; ++i)
{ {
currentArg = ((string) argv[i]); currentArg = static_cast<string>(argv[i]);
if ((currentArg == "--printresult") || (currentArg == "-p")) printResult = true; if ((currentArg == "--printresult") || (currentArg == "-p")) printResult = true;
else if (currentArg.starts_with("--target=")) target = '.' + currentArg.erase(0, 9); else if (currentArg.starts_with("--target=")) target = '.' + currentArg.erase(0, 9);
} }