From 1e4079d59c3ff7c9e0b03dffd1e4762ebbd1fd44 Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Sun, 11 Mar 2018 17:07:05 +0100 Subject: Another warning fixed --- BuddhaTest/src/Helpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BuddhaTest/src/Helpers.cpp b/BuddhaTest/src/Helpers.cpp index 9736786..a5743e5 100644 --- a/BuddhaTest/src/Helpers.cpp +++ b/BuddhaTest/src/Helpers.cpp @@ -185,7 +185,7 @@ namespace Helpers { if(fabs(gamma - 1.0) > 0.0001 || fabs(colorScale - 1.0) > 0.0001) { - pngData[data.size() + i] = 255.0 * pow(std::min(1.0,colorScale*static_cast(data[i])/static_cast(maxValue)),gamma); + pngData[data.size() + i] = static_cast(255.0 * pow(std::min(1.0,colorScale*static_cast(data[i])/static_cast(maxValue)),gamma)); } else { -- cgit v1.2.3