Skip to content
Snippets Groups Projects
Unverified Commit dc36405c authored by Jayesh Badwaik's avatar Jayesh Badwaik
Browse files

- bati : use the input type for pow result

parent 6c7d5ec7
Branches
No related tags found
No related merge requests found
Pipeline #134308 passed
...@@ -35,7 +35,7 @@ template <typename T> ...@@ -35,7 +35,7 @@ template <typename T>
NOLA_HOST_DEVICE NOLA_HOST_DEVICE
constexpr auto pow(T const& a, std::size_t n) -> T constexpr auto pow(T const& a, std::size_t n) -> T
{ {
double result = 1.0; T result = 1.0;
while (n != 0) { while (n != 0) {
result *= a; result *= a;
--n; --n;
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment