summaryrefslogtreecommitdiffstats
path: root/JavaScriptCore/wtf/unicode/UTF8.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'JavaScriptCore/wtf/unicode/UTF8.cpp')
-rw-r--r--JavaScriptCore/wtf/unicode/UTF8.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/JavaScriptCore/wtf/unicode/UTF8.cpp b/JavaScriptCore/wtf/unicode/UTF8.cpp
index 21d5856..40c5609 100644
--- a/JavaScriptCore/wtf/unicode/UTF8.cpp
+++ b/JavaScriptCore/wtf/unicode/UTF8.cpp
@@ -240,7 +240,7 @@ ConversionResult convertUTF8ToUTF16(
UChar* target = *targetStart;
while (source < sourceEnd) {
UChar32 ch = 0;
- int extraBytesToRead = UTF8SequenceLength(*source) - 1;
+ int extraBytesToRead = inlineUTF8SequenceLength(*source) - 1;
if (source + extraBytesToRead >= sourceEnd) {
result = sourceExhausted;
break;