src: fix build when using shared simdutf

PR-URL: https://github.com/nodejs/node/pull/58407
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
This commit is contained in:
Antoine du Hamel authored and Marco Ippolito committed 2025-08-27 19:20:39 +02:00
1 parent 563e61f012
commit 586b1be11b
1 file changed
+2 -2
+2 -2
View File
@@ -172,7 +172,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) {
@@ -216,7 +216,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());