Changeset 53674 in webkit


Ignore:
Timestamp:
Jan 21, 2010 9:23:12 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-01-21 Joe Mason <jmason@rim.com>

Reviewed by Darin Adler.

Promote pow argument to double to resolve ambiguous overload (compile fix for RVCT 4.0)
https://bugs.webkit.org/show_bug.cgi?id=33952

  • platform/graphics/filters/FEComponentTransfer.cpp: (WebCore::gamma):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r53673 r53674  
     12010-01-21  Joe Mason  <jmason@rim.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        Promote pow argument to double to resolve ambiguous overload (compile fix for RVCT 4.0)
     6        https://bugs.webkit.org/show_bug.cgi?id=33952
     7
     8        * platform/graphics/filters/FEComponentTransfer.cpp:
     9        (WebCore::gamma):
     10
    1112010-01-21  Andrei Popescu  <andreip@google.com>
    212
  • trunk/WebCore/platform/graphics/filters/FEComponentTransfer.cpp

    r51310 r53674  
    44                  2005 Eric Seidel <eric@webkit.org>
    55                  2009 Dirk Schulze <krit@webkit.org>
     6    Copyright (C) Research In Motion Limited 2010. All rights reserved.
    67
    78    This library is free software; you can redistribute it and/or
     
    141142{
    142143    for (unsigned i = 0; i < 256; ++i) {
    143         double val = 255.0 * (transferFunction.amplitude * pow((i / 255.0), transferFunction.exponent) + transferFunction.offset);
     144        double exponent = transferFunction.exponent; // RCVT doesn't like passing a double and a float to pow, so promote this to double
     145        double val = 255.0 * (transferFunction.amplitude * pow((i / 255.0), exponent) + transferFunction.offset);
    144146        val = std::max(0.0, std::min(255.0, val));
    145147        values[i] = static_cast<unsigned char>(val);
Note: See TracChangeset for help on using the changeset viewer.