Skip to content

Commit e95bf02

Browse files
committed
cpplint
1 parent 00c81b8 commit e95bf02

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

stan/math/rev/core/team_thread_pool.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ class TeamThreadPool {
146146
if (!s || !*s)
147147
return 0;
148148
char* end = nullptr;
149-
long v = std::strtol(s, &end, 10);
149+
std::size_t v = static_cast<std::size_t>(std::strtol(s, &end, 10));
150150
if (end == s || v <= 0)
151151
return 0;
152-
return static_cast<std::size_t>(v);
152+
return v;
153153
}
154154

155155
static std::size_t configured_cap_(std::size_t hw) noexcept {

stan/math/rev/functor/map_rect_concurrent.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
#include <stan/math/rev/core/chainablestack.hpp>
1010
#include <stan/math/rev/core/team_thread_pool.hpp>
1111

12-
//#include <tbb/parallel_for.h>
13-
//#include <tbb/blocked_range.h>
14-
1512
#include <algorithm>
1613
#include <numeric>
1714
#include <thread>

0 commit comments

Comments
 (0)