Skip to content

Commit

Permalink
last warning
Browse files Browse the repository at this point in the history
  • Loading branch information
forefire committed Aug 9, 2024
1 parent aa738c1 commit f9347fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ int Command::printSimulation(const string& arg, size_t& numTabs){
vector<string> parts;
tokenize(arg, parts, "*");

int partToEval = (arg.at(0) == '*') ? 0 : 1;
unsigned int partToEval = (arg.at(0) == '*') ? 0 : 1;

for (auto i = 0u; i < parts.size(); i++) {
finalStr += (i % 2 == partToEval) ? simParam->getParameter(parts[i]) : parts[i];
Expand Down Expand Up @@ -750,7 +750,7 @@ int Command::systemExec(const string& arg, size_t& numTabs){
vector<string> parts;
tokenize(arg, parts, "*");

int partToEval = (arg.at(0) == '*') ? 0 : 1;
unsigned int partToEval = (arg.at(0) == '*') ? 0 : 1;

for (auto i = 0u; i < parts.size(); i++) {
finalStr += (i % 2 == partToEval) ? simParam->getParameter(parts[i]) : parts[i];
Expand Down

0 comments on commit f9347fc

Please sign in to comment.