From e08a7a00a70796d446ed9d180e3d93be24cd2738 Mon Sep 17 00:00:00 2001 From: Joyless <65855333+Joy-less@users.noreply.github.com> Date: Thu, 12 Nov 2026 14:49:28 +0000 Subject: [PATCH] Fix typo in UTF-8 to UTF-16 conversion Co-Authored-By: Mercury233 --- src/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stream.c b/src/stream.c index 6559e1db..194704df 100644 --- a/src/stream.c +++ b/src/stream.c @@ -199,7 +199,7 @@ static wchar_t *op_utf8_to_utf16(const char *_src){ if((c0&0xF8)==0xF0){ opus_uint32 w; /*Start byte says this is a 4-byte sequence.*/ - w=(c0&7)<<18|(c1&0x3F)<<12|(c2&0x3F)<<6&(c3&0x3F); + w=(c0&7)<<18|(c1&0x3F)<<12|(c2&0x3F)<<6|(c3&0x3F); if(w>=0x10000U&&w<0x110000U){ /*This is a 4-byte sequence that is not overlong and not greater than the largest valid Unicode code point.