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,
172172 const  char * source,
173173 const  size_t  source_length,
174174 UErrorCode* status) {
175-  MaybeStackBuffer<UChar > destbuf (source_length);
175+  MaybeStackBuffer<char16_t > destbuf (source_length);
176176 auto  actual_length =
177177 simdutf::convert_latin1_to_utf16le (source, source_length, destbuf.out ());
178178 if  (actual_length == 0 ) {
@@ -216,7 +216,7 @@ MaybeLocal<Object> TranscodeUcs2FromUtf8(Environment* env,
216216 UErrorCode* status) {
217217 size_t  expected_utf16_length =
218218 simdutf::utf16_length_from_utf8 (source, source_length);
219-  MaybeStackBuffer<UChar > destbuf (expected_utf16_length);
219+  MaybeStackBuffer<char16_t > destbuf (expected_utf16_length);
220220 auto  actual_length =
221221 simdutf::convert_utf8_to_utf16le (source, source_length, destbuf.out ());
222222
                                 You can’t perform that action at this time. 
               
                  
0 commit comments