From 6c19c24a50ad762eb420848cda6354bf5d981357 Mon Sep 17 00:00:00 2001 From: Fred <92879080+fredevb@users.noreply.github.com> Date: Wed, 12 Jun 2024 14:01:16 +0200 Subject: [PATCH] Update get_max_neighbor_bins to remove implicit conversion warnings (#611) * Update seeding_config.hpp * Update seeding_config.hpp * Update core/include/traccc/seeding/detail/seeding_config.hpp Co-authored-by: Stephen Nicholas Swatman * Update seeding_config.hpp --------- Co-authored-by: Stephen Nicholas Swatman --- core/include/traccc/seeding/detail/seeding_config.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/include/traccc/seeding/detail/seeding_config.hpp b/core/include/traccc/seeding/detail/seeding_config.hpp index 85e8f87b39..4cc01dda58 100644 --- a/core/include/traccc/seeding/detail/seeding_config.hpp +++ b/core/include/traccc/seeding/detail/seeding_config.hpp @@ -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