aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Grois <andi@grois.info>2018-03-11 17:07:05 +0100
committerAndreas Grois <andi@grois.info>2018-03-11 17:07:05 +0100
commit1e4079d59c3ff7c9e0b03dffd1e4762ebbd1fd44 (patch)
tree3b246d6d2450c64d39951ffd4a35cc421a26900b
parentfdd3f39a566462f004f5ef62a181848baac3160a (diff)
Another warning fixedv0.0.1-kindaworking
-rw-r--r--BuddhaTest/src/Helpers.cpp2
1 files changed, 1 insertions, 1 deletions
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<double>(data[i])/static_cast<double>(maxValue)),gamma);
+ pngData[data.size() + i] = static_cast<png_byte>(255.0 * pow(std::min(1.0,colorScale*static_cast<double>(data[i])/static_cast<double>(maxValue)),gamma));
}
else
{