Skip to content

Commit 9fc22ee

Browse files
committed
cast
1 parent a62bcd2 commit 9fc22ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/native/minipal/utf8.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,8 @@ size_t minipal_convert_utf8_to_utf16(const char* source, size_t sourceLength, CH
455455
errno = MINIPAL_ERROR_INSUFFICIENT_BUFFER;
456456
return 0;
457457
}
458-
destination[destinationIndex++] = 0xD800 | (currentChar >> 10);
458+
459+
destination[destinationIndex++] = (CHAR16_T)(0xD800 | (currentChar >> 10));
459460

460461
#if BIGENDIAN
461462
if (!treatAsLE)

0 commit comments

Comments
 (0)