Changeset 135763 in webkit
- Timestamp:
- Nov 26, 2012 2:11:42 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r135762 r135763 1 2012-11-26 Alex Christensen <alex.christensen@flexsim.com> 2 3 clipboardwin compile error for win64 4 https://bugs.webkit.org/show_bug.cgi?id=94124 5 6 Reviewed by Brent Fulgham. 7 8 The clipboard utilities code uses std::min with one unsigned int parameter and one size_t parameter. 9 This causes a problem when compiling for 64-bit Windows because the two types are not the same size. 10 To resolve this issue, we specify the template type as the type the return value is being cast into 11 12 Fixed a few compile errors for Windows x64 by specifying template parameters. 13 14 * platform/win/ClipboardUtilitiesWin.cpp: 15 (WebCore::setFileDescriptorData): Specify the types for the std::min macro to avoid compiler errors 16 under 64-bit builds. 17 1 18 2012-11-26 Arnaud Renevier <a.renevier@sisa.samsung.com> 2 19 -
trunk/Source/WebCore/platform/win/ClipboardUtilitiesWin.cpp
r130612 r135763 434 434 fgd->fgd[0].nFileSizeLow = size; 435 435 436 int maxSize = std::min (pathname.length(), WTF_ARRAY_LENGTH(fgd->fgd[0].cFileName));436 int maxSize = std::min<int>(pathname.length(), WTF_ARRAY_LENGTH(fgd->fgd[0].cFileName)); 437 437 CopyMemory(fgd->fgd[0].cFileName, pathname.charactersWithNullTermination(), maxSize * sizeof(UChar)); 438 438 GlobalUnlock(medium.hGlobal);
Note: See TracChangeset
for help on using the changeset viewer.