Skip to content

Commit 0240014

Browse files
Fixing style
1 parent b4e8e2f commit 0240014

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

examples/local/fibonacci/source/nosv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ int main(int argc, char **argv)
6565

6666
// Adding it to the list
6767
auto itr = cr.begin();
68-
auto numCores = std::max(8ul, cr.size());
68+
auto numCores = std::min(8ul, cr.size());
6969
for (size_t i = 0; i < numCores; i++)
7070
{
7171
computeResources.push_back(*itr);

examples/local/fibonacci/source/pthreads.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ int main(int argc, char **argv)
5959

6060
// Adding it to the list
6161
auto itr = cr.begin();
62-
auto numCores = std::max(8ul, cr.size());
62+
auto numCores = std::min(8ul, cr.size());
6363
for (size_t i = 0; i < numCores; i++)
6464
{
6565
computeResources.push_back(*itr);

0 commit comments

Comments
 (0)