From e356ceab0c4d034e5235d035fa28a7b6ec72439f Mon Sep 17 00:00:00 2001 From: Username404 Date: Sat, 24 Apr 2021 18:23:37 +0200 Subject: [PATCH] Use a static cast in the main function. --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 77572d8..c9512bf 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -13,7 +13,7 @@ int main(int argc, char* argv[]) { string currentArg; for (signed int i = 0; i < argc; ++i) { - currentArg = ((string) argv[i]); + currentArg = static_cast(argv[i]); if ((currentArg == "--printresult") || (currentArg == "-p")) printResult = true; else if (currentArg.starts_with("--target=")) target = '.' + currentArg.erase(0, 9); }