Changeset 24058 in webkit


Ignore:
Timestamp:
Jul 6, 2007 4:42:53 AM (17 years ago)
Author:
bdash
Message:

2007-07-06 Bernhard Rosenkraenzer <bero@arklinux.org>

Reviewed by Sam.

Fix for http://bugs.webkit.org/show_bug.cgi?id=13985
Bug 13985: WebCore/rendering/RenderTable.cpp fails to compile with gcc 4.2.x

  • rendering/RenderTable.cpp: (WebKit::RenderTable::calcBorderLeft) (WebKit::RenderTable::calcBorderRight)
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r24057 r24058  
     12007-07-06  Bernhard Rosenkraenzer  <bero@arklinux.org>
     2
     3        Reviewed by Sam.
     4
     5        Fix for http://bugs.webkit.org/show_bug.cgi?id=13985
     6        Bug 13985: WebCore/rendering/RenderTable.cpp fails to compile with gcc 4.2.x
     7
     8        * rendering/RenderTable.cpp:
     9        (WebKit::RenderTable::calcBorderLeft)
     10        (WebKit::RenderTable::calcBorderRight)
     11
    1122007-07-06  Maxime Britto  <mbritto@pleyo.com>
    213
  • trunk/WebCore/rendering/RenderTable.cpp

    r23762 r24058  
    723723                return 0;
    724724            if (gb.style() > BHIDDEN)
    725                 borderWidth = max(borderWidth, gb.width);
     725                borderWidth = max(borderWidth, static_cast<unsigned>(gb.width));
    726726        }
    727727       
     
    736736
    737737            if (sb.style() > BHIDDEN)
    738                 borderWidth = max(borderWidth, sb.width);
     738                borderWidth = max(borderWidth, static_cast<unsigned>(sb.width));
    739739
    740740            const RenderTableSection::CellStruct& cs = firstNonEmptySection->cellAt(0, leftmostColumn);
     
    750750
    751751                if (cb.style() > BHIDDEN)
    752                     borderWidth = max(borderWidth, cb.width);
     752                    borderWidth = max(borderWidth, static_cast<unsigned>(cb.width));
    753753                if (rb.style() > BHIDDEN)
    754                     borderWidth = max(borderWidth, rb.width);
     754                    borderWidth = max(borderWidth, static_cast<unsigned>(rb.width));
    755755            }
    756756        }
     
    782782                return 0;
    783783            if (gb.style() > BHIDDEN)
    784                 borderWidth = max(borderWidth, gb.width);
     784                borderWidth = max(borderWidth, static_cast<unsigned>(gb.width));
    785785        }
    786786       
     
    795795
    796796            if (sb.style() > BHIDDEN)
    797                 borderWidth = max(borderWidth, sb.width);
     797                borderWidth = max(borderWidth, static_cast<unsigned>(sb.width));
    798798
    799799            const RenderTableSection::CellStruct& cs = firstNonEmptySection->cellAt(0, rightmostColumn);
     
    809809
    810810                if (cb.style() > BHIDDEN)
    811                     borderWidth = max(borderWidth, cb.width);
     811                    borderWidth = max(borderWidth, static_cast<unsigned>(cb.width));
    812812                if (rb.style() > BHIDDEN)
    813                     borderWidth = max(borderWidth, rb.width);
     813                    borderWidth = max(borderWidth, static_cast<unsigned>(rb.width));
    814814            }
    815815        }
Note: See TracChangeset for help on using the changeset viewer.