Changing std::pow argument 10 to 10.0 for double
Sanity check to ensure correct std::pow function overload called
Signed-off-by: Josh Lehan <krellan@google.com>
Change-Id: Iac67371a25adbcfc03c85c09c4609063d00f6c37
diff --git a/src/sensorcommands.cpp b/src/sensorcommands.cpp
index 7aff404..f020b8b 100644
--- a/src/sensorcommands.cpp
+++ b/src/sensorcommands.cpp
@@ -651,8 +651,8 @@
{
// from section 36.3 in the IPMI Spec, assume all linear
double valueToSet = ((mValue * std::get<thresholdValue>(property)) +
- (bValue * std::pow(10, bExp))) *
- std::pow(10, rExp);
+ (bValue * std::pow(10.0, bExp))) *
+ std::pow(10.0, rExp);
setDbusProperty(
*getSdBus(), connection, path, std::get<interface>(property),
std::get<propertyName>(property), ipmi::Value(valueToSet));