File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ MaybeLocal<Object> TranscodeLatin1ToUcs2(Environment* env,
174174 const char * source,
175175 const size_t source_length,
176176 UErrorCode* status) {
177- MaybeStackBuffer<UChar > destbuf (source_length);
177+ MaybeStackBuffer<char16_t > destbuf (source_length);
178178 auto actual_length =
179179 simdutf::convert_latin1_to_utf16le (source, source_length, destbuf.out ());
180180 if (actual_length == 0 ) {
@@ -218,7 +218,7 @@ MaybeLocal<Object> TranscodeUcs2FromUtf8(Environment* env,
218218 UErrorCode* status) {
219219 size_t expected_utf16_length =
220220 simdutf::utf16_length_from_utf8 (source, source_length);
221- MaybeStackBuffer<UChar > destbuf (expected_utf16_length);
221+ MaybeStackBuffer<char16_t > destbuf (expected_utf16_length);
222222 auto actual_length =
223223 simdutf::convert_utf8_to_utf16le (source, source_length, destbuf.out ());
224224
You can’t perform that action at this time.
0 commit comments