Skip to content

Commit

Permalink
Fix warning detected with msvc17: warning C4244: 'argument' : convers…
Browse files Browse the repository at this point in the history
…ion from '__int64' to '_Ty', possible loss of info
  • Loading branch information
fspindle committed Jul 3, 2023
1 parent 2732e65 commit cf453e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/io/src/tools/vpJsonArgumentParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ void vpJsonArgumentParser::parse(int argc, const char *argv [])
const auto jsonFileArgumentPos = std::find(arguments.begin(), arguments.end(), jsonFileArgumentName);
// Load JSON file if present
if (jsonFileArgumentPos != arguments.end()) {
ignoredArguments.push_back(jsonFileArgumentPos - arguments.begin() + 1);
ignoredArguments.push_back(jsonFileArgumentPos - arguments.begin() + 2);
ignoredArguments.push_back(static_cast<unsigned>(jsonFileArgumentPos - arguments.begin() + 1));
ignoredArguments.push_back(static_cast<unsigned>(jsonFileArgumentPos - arguments.begin() + 2));

if (jsonFileArgumentPos == arguments.end() - 1) {
throw vpException(vpException::ioError, "No JSON file was provided");
Expand Down

0 comments on commit cf453e3

Please sign in to comment.