Skip to content

Commit

Permalink
Update get_max_neighbor_bins to remove implicit conversion warnings (#…
Browse files Browse the repository at this point in the history
…611)

* Update seeding_config.hpp

* Update seeding_config.hpp

* Update core/include/traccc/seeding/detail/seeding_config.hpp

Co-authored-by: Stephen Nicholas Swatman <stephen.nicholas.swatman@cern.ch>

* Update seeding_config.hpp

---------

Co-authored-by: Stephen Nicholas Swatman <stephen.nicholas.swatman@cern.ch>
  • Loading branch information
fredevb and stephenswat committed Jun 12, 2024
1 parent d7b04d0 commit 6c19c24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/include/traccc/seeding/detail/seeding_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ struct seedfinder_config {

TRACCC_HOST_DEVICE
unsigned int get_max_neighbor_bins() const {
return std::pow(neighbor_scope[0] + neighbor_scope[1] + 1, 2);
unsigned int t = neighbor_scope[0] + neighbor_scope[1] + 1;
return t * t;
}

// Configure unset parameters
Expand Down

0 comments on commit 6c19c24

Please sign in to comment.