Changeset 138978 in webkit


Ignore:
Timestamp:
Jan 7, 2013 12:53:58 PM (11 years ago)
Author:
eric.carlson@apple.com
Message:

LayoutUnit(unsigned long long value) compile failure
https://bugs.webkit.org/show_bug.cgi?id=106239

Cast the result of ('unsigned long long' * 'int') to an int before storing in m_value
to avoid compile failure on some platforms.

Reviewed by Ryosuke Niwa.

  • platform/LayoutUnit.h:

(WebCore::LayoutUnit::LayoutUnit): Cast to int after multiplication.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r138977 r138978  
     12013-01-07  Eric Carlson  <eric.carlson@apple.com>
     2
     3        LayoutUnit(unsigned long long value) compile failure
     4        https://bugs.webkit.org/show_bug.cgi?id=106239
     5
     6        Cast the result of ('unsigned long long' * 'int') to an int before storing in m_value
     7        to avoid compile failure on some platforms.
     8
     9        Reviewed by Ryosuke Niwa.
     10
     11        * platform/LayoutUnit.h:
     12        (WebCore::LayoutUnit::LayoutUnit): Cast to int after multiplication.
     13
    1142013-01-07  Joe Mason  <jmason@rim.com>
    215
  • trunk/Source/WebCore/platform/LayoutUnit.h

    r138952 r138978  
    8787#else
    8888        REPORT_OVERFLOW(isInBounds(static_cast<unsigned>(value)));
    89         m_value = value * kEffectiveFixedPointDenominator;
     89        m_value = static_cast<int>(value * kEffectiveFixedPointDenominator);
    9090#endif
    9191    }
Note: See TracChangeset for help on using the changeset viewer.