Changeset 175623 in webkit


Ignore:
Timestamp:
Nov 5, 2014 9:42:38 AM (9 years ago)
Author:
commit-queue@webkit.org
Message:

Fix build warning in SVGMarkerElement.cpp
https://bugs.webkit.org/show_bug.cgi?id=138407

Patch by Sanghyup Lee <sh53.lee@samsung.com> on 2014-11-05
Reviewed by Darin Adler.

Build warning in debug cause 'comparison of unsigned expression >= 0 is always true [-Wtype-limits]'

  • svg/SVGMarkerElement.cpp:

(WebCore::SVGMarkerElement::orientType): Removed useless condition in ASSERT.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r175622 r175623  
     12014-11-05  Sanghyup Lee  <sh53.lee@samsung.com>
     2
     3        Fix build warning in SVGMarkerElement.cpp
     4        https://bugs.webkit.org/show_bug.cgi?id=138407
     5
     6        Reviewed by Darin Adler.
     7
     8        Build warning in debug cause 'comparison of unsigned expression >= 0 is always true [-Wtype-limits]'
     9
     10        * svg/SVGMarkerElement.cpp:
     11        (WebCore::SVGMarkerElement::orientType): Removed useless condition in ASSERT.
     12
    1132014-11-05  Chris Dumez  <cdumez@apple.com>
    214
  • trunk/Source/WebCore/svg/SVGMarkerElement.cpp

    r175525 r175623  
    254254    if (SVGAnimatedEnumeration* wrapper = SVGAnimatedProperty::lookupWrapper<UseOwnerType, SVGAnimatedEnumeration>(this, orientTypePropertyInfo())) {
    255255        if (wrapper->isAnimating()) {
    256             ASSERT(wrapper->currentAnimatedValue() >= 0 && wrapper->currentAnimatedValue() < SVGMarkerOrientMax);
     256            ASSERT(wrapper->currentAnimatedValue() < SVGMarkerOrientMax);
    257257            return reinterpret_cast<SVGMarkerOrientType&>(wrapper->currentAnimatedValue());
    258258        }
Note: See TracChangeset for help on using the changeset viewer.