Changeset 116394 in webkit


Ignore:
Timestamp:
May 7, 2012 10:14:07 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Fix signed/unsigned mismatch
https://bugs.webkit.org/show_bug.cgi?id=85845

Make literal in assert be unsigned to match comparison on LHS. Avoids
warning on Windows.

Patch by Scott Graham <scottmg@chromium.org> on 2012-05-07
Reviewed by Eric Seidel.

No new tests. No intended functionality change.

  • rendering/RenderTableSection.cpp:

(WebCore::RenderTableSection::splitColumn):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r116392 r116394  
     12012-05-07  Scott Graham  <scottmg@chromium.org>
     2
     3        Fix signed/unsigned mismatch
     4        https://bugs.webkit.org/show_bug.cgi?id=85845
     5
     6        Make literal in assert be unsigned to match comparison on LHS. Avoids
     7        warning on Windows.
     8
     9        Reviewed by Eric Seidel.
     10
     11        No new tests. No intended functionality change.
     12
     13        * rendering/RenderTableSection.cpp:
     14        (WebCore::RenderTableSection::splitColumn):
     15
    1162012-05-07  Emil A Eklund  <eae@chromium.org>
    217
  • trunk/Source/WebCore/rendering/RenderTableSection.cpp

    r116174 r116394  
    12951295            RenderTableCell* cell = r[pos].primaryCell();
    12961296            ASSERT(cell);
    1297             ASSERT(cell->colSpan() >= (r[pos].inColSpan ? 1 : 0));
     1297            ASSERT(cell->colSpan() >= (r[pos].inColSpan ? 1u : 0));
    12981298            unsigned colleft = cell->colSpan() - r[pos].inColSpan;
    12991299            if (first > colleft)
Note: See TracChangeset for help on using the changeset viewer.