Fix: Ensure 31-bit shifts are unsigned. (#10128)
commitf24286a1ae4997d7a3ca72a33b9ea31c04c0de79
authorPeterN <peter1138@openttd.org>
Fri, 4 Nov 2022 07:15:59 +0000 (4 07:15 +0000)
committerGitHub <noreply@github.com>
Fri, 4 Nov 2022 07:15:59 +0000 (4 07:15 +0000)
tree21aa37f9dedc7508d397e9c95be1e8d1a4193fd2
parentaccbfd502e109267be90307258615dec2d844b36
Fix: Ensure 31-bit shifts are unsigned. (#10128)

Shifting a signed 32-bit integer by 31 bits is undefined behaviour.
A few more than necessary are switched to unsigned for consistentency.
src/map_type.h
src/newgrf.cpp
src/newgrf_spritegroup.h
src/slope_type.h
src/table/sprites.h
src/widget.cpp