From 162f8e25fde74a05a2483e82e10d69692f43b895 Mon Sep 17 00:00:00 2001 From: peri4 Date: Mon, 13 Mar 2023 14:18:42 +0300 Subject: [PATCH] pow10 error --- libs/main/math/pimathbase.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/main/math/pimathbase.h b/libs/main/math/pimathbase.h index 6691f576..6d5b9169 100644 --- a/libs/main/math/pimathbase.h +++ b/libs/main/math/pimathbase.h @@ -103,7 +103,7 @@ inline int sign(const double & x) {return (x < 0. ) ? -1 : (x > 0. ? 1 : 0);} inline int sign(const ldouble & x) {return (x < 0.L) ? -1 : (x > 0.L ? 1 : 0);} inline int pow2 (const int p ) {return 1 << p;} -inline float pow10(const int & e) {return powf(10.f, e);} +inline float pow10(const float & e) {return powf(10.f, e);} inline double pow10(const double & e) {return pow (10. , e);} inline ldouble pow10(const ldouble & e) {return powl(10.L, e);} // clang-format on