Skip to content

Use unsigned arithmetic when shifting by 24

By default C promotes short unsigned values to signed int which leads to undefined behaviour when the value is shifted by too much. Force unsigned arithmetic to be perform by explicitly casting to a unsigned type.

(cherry picked from commit b8b99603)

Closes #3176 (closed)

Merge request reports