Fix compilation with ICU 59.1
authorannulen@yandex.ru <annulen@yandex.ru@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 May 2017 15:33:41 +0000 (15:33 +0000)
committerannulen@yandex.ru <annulen@yandex.ru@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 May 2017 15:33:41 +0000 (15:33 +0000)
commit011c994d52cc30bdec69aebed8ec1a025966b34a
treeed1f09ed879b2998e89b0a7d1d2127f3a521bfda
parente27057551f51d87892cacdb0b9727896cb195056
Fix compilation with ICU 59.1
https://bugs.webkit.org/show_bug.cgi?id=171612

Reviewed by Mark Lam.

ICU 59.1 has broken source compatibility. Now it defines UChar as
char16_t, which does not allow automatic type conversion from unsigned
short in C++ code.

Source/JavaScriptCore:

* API/JSStringRef.cpp:
(JSStringCreateWithCharacters):
(JSStringCreateWithCharactersNoCopy):
(JSStringGetCharactersPtr):
* runtime/DateConversion.cpp:
(JSC::formatDateTime):

Source/WebKit2:

* Shared/API/c/WKString.cpp:
(WKStringGetCharacters):

Tools:

* TestRunnerShared/UIScriptContext/UIScriptContext.cpp:
(UIScriptContext::tryToCompleteUIScriptForCurrentParentCallback):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@216187 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/API/JSStringRef.cpp
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/DateConversion.cpp
Source/WebKit2/ChangeLog
Source/WebKit2/Shared/API/c/WKString.cpp
Tools/ChangeLog
Tools/TestRunnerShared/UIScriptContext/UIScriptContext.cpp