Changeset 110566 in webkit


Ignore:
Timestamp:
Mar 13, 2012 8:24:02 AM (12 years ago)
Author:
staikos@webkit.org
Message:

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

Reviewed by Alexey Proskuryakov.

  • loader/icon/IconDatabase.cpp:

(WebCore::IconDatabase::synchronousLoadDecisionForIconURL):

  • platform/network/MIMESniffing.cpp:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r110565 r110566  
     12012-03-13  George Staikos  <staikos@webkit.org>
     2
     3        Fix signed/unsigned mismatch compiler warnings.
     4        https://bugs.webkit.org/show_bug.cgi?id=80790
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        * loader/icon/IconDatabase.cpp:
     9        (WebCore::IconDatabase::synchronousLoadDecisionForIconURL):
     10        * platform/network/MIMESniffing.cpp:
     11
    1122012-03-13  Sheriff Bot  <webkit.review.bot@gmail.com>
    213
  • trunk/Source/WebCore/loader/icon/IconDatabase.cpp

    r108119 r110566  
    653653        if (IconRecord* icon = m_iconURLToRecordMap.get(iconURL)) {
    654654            LOG(IconDatabase, "Found expiration time on a present icon based on existing IconRecord");
    655             return (int)currentTime() - icon->getTimestamp() > iconExpirationTime ? IconLoadYes : IconLoadNo;
     655            return static_cast<int>(currentTime()) - static_cast<int>(icon->getTimestamp()) > iconExpirationTime ? IconLoadYes : IconLoadNo;
    656656        }
    657657    }
  • trunk/Source/WebCore/platform/network/MIMESniffing.cpp

    r95901 r110566  
    224224{
    225225    size_t result = 0;
    226     for (int i = 0; i < imageTypesSize; ++i) {
     226    for (size_t i = 0; i < imageTypesSize; ++i) {
    227227        if (imageTypes[i].size > result)
    228228            result = imageTypes[i].size;
Note: See TracChangeset for help on using the changeset viewer.