⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 181475 in webkit


Ignore:
Timestamp:
Mar 13, 2015, 12:52:39 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Fix Debug build error 'comparison is always true due to limited range of data type [-Werror=type-limits]'
https://bugs.webkit.org/show_bug.cgi?id=142652

Patch by Joonghun Park <jh718.park@samsung.com> on 2015-03-13
Reviewed by Csaba Osztrogonác.

No new tests, no behavior changes.

Now CSSPropertyID type is uint16_t, so propertyID >= 0 check is needed no more.

  • css/CSSPrimitiveValue.cpp:

(WebCore::propertyName):

  • css/makeprop.pl:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r181468 r181475  
     12015-03-13  Joonghun Park  <jh718.park@samsung.com>
     2
     3        Fix Debug build error 'comparison is always true due to limited range of data type [-Werror=type-limits]'
     4        https://bugs.webkit.org/show_bug.cgi?id=142652
     5
     6        Reviewed by Csaba Osztrogonác.
     7
     8        No new tests, no behavior changes.
     9
     10        Now CSSPropertyID type is uint16_t, so propertyID >= 0 check is needed no more.
     11
     12        * css/CSSPrimitiveValue.cpp:
     13        (WebCore::propertyName):
     14        * css/makeprop.pl:
     15
    1162015-03-12  Zan Dobersek  <zdobersek@igalia.com>
    217
  • trunk/Source/WebCore/css/CSSPrimitiveValue.cpp

    r181320 r181475  
    218218static const AtomicString& propertyName(CSSPropertyID propertyID)
    219219{
    220     ASSERT_ARG(propertyID, propertyID >= 0);
    221220    ASSERT_ARG(propertyID, (propertyID >= firstCSSProperty && propertyID < firstCSSProperty + numCSSProperties));
    222221
  • trunk/Source/WebCore/css/makeprop.pl

    r181320 r181475  
    250250bool CSSProperty::isInheritedProperty(CSSPropertyID id)
    251251{
    252     ASSERT(id >= 0 && id <= lastCSSProperty);
     252    ASSERT(id <= lastCSSProperty);
    253253    ASSERT(id != CSSPropertyInvalid);
    254254    return isInheritedPropertyTable[id];
Note: See TracChangeset for help on using the changeset viewer.