Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/node_i18n.cc
Original file line numberDiff line numberDiff line change
Expand Up@@ -174,7 +174,7 @@ MaybeLocal<Object> TranscodeLatin1ToUcs2(Environment* env,
const char* source,
const size_t source_length,
UErrorCode* status) {
MaybeStackBuffer<UChar> destbuf(source_length);
MaybeStackBuffer<char16_t> destbuf(source_length);
auto actual_length =
simdutf::convert_latin1_to_utf16le(source, source_length, destbuf.out());
if (actual_length == 0) {
Expand DownExpand Up@@ -218,7 +218,7 @@ MaybeLocal<Object> TranscodeUcs2FromUtf8(Environment* env,
UErrorCode* status) {
size_t expected_utf16_length =
simdutf::utf16_length_from_utf8(source, source_length);
MaybeStackBuffer<UChar> destbuf(expected_utf16_length);
MaybeStackBuffer<char16_t> destbuf(expected_utf16_length);
auto actual_length =
simdutf::convert_utf8_to_utf16le(source, source_length, destbuf.out());

Expand Down