aboutsummaryrefslogtreecommitdiff
path: root/primedev/primelauncher
diff options
context:
space:
mode:
authorJack <66967891+ASpoonPlaysGames@users.noreply.github.com>2024-01-21 19:34:19 +0000
committerGitHub <noreply@github.com>2024-01-21 20:34:19 +0100
commit7f84bdf8fd5c93286f000bc5f9314eab81128cee (patch)
treed97974691eb50b7cd8a2bf8a7cbc342fdc7bdd44 /primedev/primelauncher
parente72f0cbbac6ffcbfbf0c52f14a2a3cb7c18ba8fc (diff)
downloadNorthstarLauncher-7f84bdf8fd5c93286f000bc5f9314eab81128cee.tar.gz
NorthstarLauncher-7f84bdf8fd5c93286f000bc5f9314eab81128cee.zip
Address C4267 compiler warnings (#647)v1.22.2-rc1
Implicit conversion from `size_t` to a smaller type
Diffstat (limited to 'primedev/primelauncher')
-rw-r--r--primedev/primelauncher/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/primedev/primelauncher/main.cpp b/primedev/primelauncher/main.cpp
index ae745672..96c96c04 100644
--- a/primedev/primelauncher/main.cpp
+++ b/primedev/primelauncher/main.cpp
@@ -281,7 +281,7 @@ bool LoadNorthstar()
std::string cla = std::string(clachar);
if (strncmp(cla.substr(9, 1).c_str(), "\"", 1))
{
- int space = cla.find(" ");
+ size_t space = cla.find(" ");
std::string dirname = cla.substr(9, space - 9);
std::cout << "[*] Found profile in command line arguments: " << dirname << std::endl;
strProfile = dirname.c_str();
@@ -289,8 +289,8 @@ bool LoadNorthstar()
else
{
std::string quote = "\"";
- int quote1 = cla.find(quote);
- int quote2 = (cla.substr(quote1 + 1)).find(quote);
+ size_t quote1 = cla.find(quote);
+ size_t quote2 = (cla.substr(quote1 + 1)).find(quote);
std::string dirname = cla.substr(quote1 + 1, quote2);
std::cout << "[*] Found profile in command line arguments: " << dirname << std::endl;
strProfile = dirname;