From 0fcedcd17cc00d3dd44c718b3cb36c1033319671 Mon Sep 17 00:00:00 2001 From: Konstantin Tokarev Date: Mon, 8 May 2017 01:22:24 +0300 Subject: Import WebKit commit b25ce6eca994718717218f56d045e75a4a22f989 Change-Id: Ied338d9a16b44b5da35d484e80a21acc284eb625 Reviewed-by: Konstantin Tokarev --- Source/WebKit2/Shared/API/c/WKString.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/WebKit2/Shared/API/c') diff --git a/Source/WebKit2/Shared/API/c/WKString.cpp b/Source/WebKit2/Shared/API/c/WKString.cpp index 305dd01b5..bd2f17436 100644 --- a/Source/WebKit2/Shared/API/c/WKString.cpp +++ b/Source/WebKit2/Shared/API/c/WKString.cpp @@ -61,7 +61,7 @@ size_t WKStringGetCharacters(WKStringRef stringRef, WKChar* buffer, size_t buffe unsigned unsignedBufferLength = std::min(bufferLength, std::numeric_limits::max()); auto substring = toImpl(stringRef)->stringView().substring(0, unsignedBufferLength); - substring.getCharactersWithUpconvert(static_cast(buffer)); + substring.getCharactersWithUpconvert(reinterpret_cast(buffer)); return substring.length(); } -- cgit v1.2.1