From 9dbf0ff6293d3c86254ec3cb04a7cf5ec9acdcc7 Mon Sep 17 00:00:00 2001 From: Ingo Weyrich Date: Mon, 20 Jan 2020 18:50:24 +0100 Subject: [PATCH] Fix LGTM issues --- rtexif/pentaxattribs.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtexif/pentaxattribs.cc b/rtexif/pentaxattribs.cc index 89e5172e8..ea47e6058 100644 --- a/rtexif/pentaxattribs.cc +++ b/rtexif/pentaxattribs.cc @@ -1391,7 +1391,7 @@ public: std::string toString (const Tag* t) const override { int a = t->toInt (0, BYTE); - double b = static_cast(10 * (a >> 2)) * std::pow(4.f, static_cast((a & 0x03) - 2)); + double b = static_cast(10 * (a >> 2)) * std::pow(4.0, static_cast((a & 0x03) - 2)); if (b > 1.0) { char buffer[32]; @@ -1404,7 +1404,7 @@ public: double toDouble (const Tag* t, int ofs) override { int a = t->toInt (ofs, BYTE); - double b = static_cast(10 * (a >> 2)) * std::pow(4.f, static_cast((a & 0x03) - 2)); + double b = static_cast(10 * (a >> 2)) * std::pow(4.0, static_cast((a & 0x03) - 2)); if (b > 1.0) { return b;