Changeset 153352 in webkit


Ignore:
Timestamp:
Jul 25, 2013 3:36:33 PM (11 years ago)
Author:
kseo@webkit.org
Message:

Build fix: use of long long in CoreIPC::ArgumentEncoder and CoreIPC::ArgumentDecoder
https://bugs.webkit.org/show_bug.cgi?id=118228

Reviewed by Anders Carlsson.

Build fails on some platforms where int64_t and long long are different types.

  • Shared/FileAPI/BlobRegistrationData.cpp:

(WebKit::BlobRegistrationData::encode):
Add explicit casts to int64_t.
(WebKit::BlobRegistrationData::decode):
Use int64_t instead of long long.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r153333 r153352  
     12013-07-25  Kwang Yul Seo  <skyul@company100.net>
     2
     3        Build fix: use of long long in CoreIPC::ArgumentEncoder and CoreIPC::ArgumentDecoder
     4        https://bugs.webkit.org/show_bug.cgi?id=118228
     5
     6        Reviewed by Anders Carlsson.
     7
     8        Build fails on some platforms where int64_t and long long are different types.
     9
     10        * Shared/FileAPI/BlobRegistrationData.cpp:
     11        (WebKit::BlobRegistrationData::encode):
     12        Add explicit casts to int64_t.
     13        (WebKit::BlobRegistrationData::decode):
     14        Use int64_t instead of long long.
     15
    1162013-07-25  Anders Carlsson  <andersca@apple.com>
    217
  • trunk/Source/WebKit2/Shared/FileAPI/BlobRegistrationData.cpp

    r145167 r153352  
    8989            break;
    9090        case BlobDataItem::File:
    91             encoder << item.offset;
    92             encoder << item.length;
     91            encoder << static_cast<int64_t>(item.offset);
     92            encoder << static_cast<int64_t>(item.length);
    9393            encoder << item.expectedModificationTime;
    9494            encoder << item.path;
    9595            break;
    9696        case BlobDataItem::Blob:
    97             encoder << item.offset;
    98             encoder << item.length;
     97            encoder << static_cast<int64_t>(item.offset);
     98            encoder << static_cast<int64_t>(item.length);
    9999            encoder << item.url;
    100100            break;
     
    139139        }
    140140        case BlobDataItem::File: {
    141             long long offset;
     141            int64_t offset;
    142142            if (!decoder.decode(offset))
    143143                return false;
    144             long long length;
     144            int64_t length;
    145145            if (!decoder.decode(length))
    146146                return false;
     
    155155        }
    156156        case BlobDataItem::Blob: {
    157             long long offset;
     157            int64_t offset;
    158158            if (!decoder.decode(offset))
    159159                return false;
    160             long long length;
     160            int64_t length;
    161161            if (!decoder.decode(length))
    162162                return false;
Note: See TracChangeset for help on using the changeset viewer.