diff --git a/src/stream.c b/src/stream.c index 6559e1d..194704d 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.