Files
Descent3/lib/Controller.h
Jan Engelhardt 765f616d7c Force makeshort/makeword to treat inputs as unsigned
ASAN says:

linux/lnxcontroller.cpp:484:12: runtime error: left shift of negative value -1
(in other words, "-1 << x", not "x << (-1)")

Bitwise AND/OR often only make sense for unsigned quantities, so
enforce exactly that kind of treatment.
2024-09-07 23:02:13 +02:00

8.8 KiB