mirror of
https://github.com/MariaDB/server.git
synced 2025-08-17 21:39:33 +00:00

Shifting a 16-bit type by 16 bits is undefined behaviour. The result is at least 32 bits, so let us cast the shift operand to a wider type before shifting.