Changeset 152193 in webkit


Ignore:
Timestamp:
Jun 28, 2013 3:48:13 PM (11 years ago)
Author:
achristensen@apple.com
Message:

Added template parameters to std::min to fix compile errors in Visual Studio x64.
https://bugs.webkit.org/show_bug.cgi?id=118204

Reviewed by Geoffrey Garen.

  • platform/win/PasteboardWin.cpp:

(WebCore::Pasteboard::writeURLToDataObject): Added <unsigned> to std::min.
(WebCore::createGlobalImageFileDescriptor): Added <int> to std::min.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r152192 r152193  
     12013-06-28  Alex Christensen  <achristensen@apple.com>
     2
     3        Added template parameters to std::min to fix compile errors in Visual Studio x64.
     4        https://bugs.webkit.org/show_bug.cgi?id=118204
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        * platform/win/PasteboardWin.cpp:
     9        (WebCore::Pasteboard::writeURLToDataObject): Added <unsigned> to std::min.
     10        (WebCore::createGlobalImageFileDescriptor): Added <int> to std::min.
     11
    1122013-06-28  Alex Christensen  <achristensen@apple.com>
    213
  • trunk/Source/WebCore/platform/win/PasteboardWin.cpp

    r152142 r152193  
    678678    fgd->fgd[0].nFileSizeLow = content.length();
    679679
    680     unsigned maxSize = std::min(fsPath.length(), WTF_ARRAY_LENGTH(fgd->fgd[0].cFileName));
     680    unsigned maxSize = std::min<unsigned>(fsPath.length(), WTF_ARRAY_LENGTH(fgd->fgd[0].cFileName));
    681681    CopyMemory(fgd->fgd[0].cFileName, fsPath.characters(), maxSize * sizeof(UChar));
    682682    GlobalUnlock(urlFileDescriptor);
     
    930930    }
    931931
    932     int maxSize = std::min(fsPath.length(), WTF_ARRAY_LENGTH(fgd->fgd[0].cFileName));
     932    int maxSize = std::min<int>(fsPath.length(), WTF_ARRAY_LENGTH(fgd->fgd[0].cFileName));
    933933    CopyMemory(fgd->fgd[0].cFileName, (LPCWSTR)fsPath.characters(), maxSize * sizeof(UChar));
    934934    GlobalUnlock(memObj);
Note: See TracChangeset for help on using the changeset viewer.