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 @@ -172,7 +172,7 @@ MaybeLocal<Object> TranscodeLatin1ToUcs2(Environment* env,
172
172
const char * source,
173
173
const size_t source_length,
174
174
UErrorCode* status) {
175
- MaybeStackBuffer<UChar > destbuf (source_length);
175
+ MaybeStackBuffer<char16_t > destbuf (source_length);
176
176
auto actual_length =
177
177
simdutf::convert_latin1_to_utf16le (source, source_length, destbuf.out ());
178
178
if (actual_length == 0 ) {
@@ -216,7 +216,7 @@ MaybeLocal<Object> TranscodeUcs2FromUtf8(Environment* env,
216
216
UErrorCode* status) {
217
217
size_t expected_utf16_length =
218
218
simdutf::utf16_length_from_utf8 (source, source_length);
219
- MaybeStackBuffer<UChar > destbuf (expected_utf16_length);
219
+ MaybeStackBuffer<char16_t > destbuf (expected_utf16_length);
220
220
auto actual_length =
221
221
simdutf::convert_utf8_to_utf16le (source, source_length, destbuf.out ());
222
222
You can’t perform that action at this time.
0 commit comments