Skip to content

Commit

Permalink
Consistent use of std::size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanielloNTIA committed Dec 3, 2024
1 parent 92f607b commit 527c5ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/DriverUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

#include <algorithm> // for std::transform
#include <cctype> // for std::tolower
#include <cstddef> // for std::size_t
#include <ctime> // for localtime_{s,r}, std::{time, time_t, tm, strftime}
#include <iomanip> // for std::setfill, std::setw
#include <iostream> // for std::cerr, std::endl
Expand Down Expand Up @@ -97,7 +98,7 @@ DrvrReturnCode ParseDouble(const std::string &str, double &value) {
******************************************************************************/
DrvrReturnCode ParseInteger(const std::string &str, int &value) {
try {
size_t pos;
std::size_t pos;
value = std::stoi(str, &pos, 10);

// Verify the entire string was parsed
Expand Down

0 comments on commit 527c5ab

Please sign in to comment.