summaryrefslogtreecommitdiff
path: root/Source/WebKit2/Shared/API/c/WKString.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/Shared/API/c/WKString.cpp')
-rw-r--r--Source/WebKit2/Shared/API/c/WKString.cpp2
1 files changed, 1 insertions, 1 deletions
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<size_t>(bufferLength, std::numeric_limits<unsigned>::max());
auto substring = toImpl(stringRef)->stringView().substring(0, unsignedBufferLength);
- substring.getCharactersWithUpconvert(static_cast<UChar*>(buffer));
+ substring.getCharactersWithUpconvert(reinterpret_cast<UChar*>(buffer));
return substring.length();
}