Skip to content

Commit

Permalink
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-buildbot committed Nov 28, 2024
1 parent a1514b8 commit 5c13934
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/stan/io/stan_csv_reader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,11 +334,11 @@ class stan_csv_reader {
for (int col = 0; col < cols; col++) {
std::getline(ls, line, ',');
boost::trim(line);
try {
samples(row, col) = static_cast<double>(std::stold(line));
} catch (const std::out_of_range &e) {
samples(row, col) = std::numeric_limits<double>::quiet_NaN();
}
try {
samples(row, col) = static_cast<double>(std::stold(line));
} catch (const std::out_of_range& e) {
samples(row, col) = std::numeric_limits<double>::quiet_NaN();
}
}
}
}
Expand Down

0 comments on commit 5c13934

Please sign in to comment.