2315
|
1 |
diff --git a/WebCore/platform/graphics/filters/FEComponentTransfer.cpp b/WebCore/platform/graphics/filters/FEComponentTransfer.cpp
|
|
2 |
index 1d9cfff..c088868 100644
|
|
3 |
--- a/WebCore/platform/graphics/filters/FEComponentTransfer.cpp
|
|
4 |
+++ b/WebCore/platform/graphics/filters/FEComponentTransfer.cpp
|
|
5 |
@@ -140,7 +140,7 @@ static void linear(unsigned char* values, const ComponentTransferFunction& trans
|
|
6 |
static void gamma(unsigned char* values, const ComponentTransferFunction& transferFunction)
|
|
7 |
{
|
|
8 |
for (unsigned i = 0; i < 256; ++i) {
|
|
9 |
- double val = 255.0 * (transferFunction.amplitude * pow((i / 255.0), transferFunction.exponent) + transferFunction.offset);
|
|
10 |
+ double val = 255.0 * (transferFunction.amplitude * pow(double(i / 255.0), double(transferFunction.exponent)) + transferFunction.offset);
|
|
11 |
val = std::max(0.0, std::min(255.0, val));
|
|
12 |
values[i] = static_cast<unsigned char>(val);
|
|
13 |
}
|