Intended sized was int32, line 59 lack only cast to long.
And now fun part, when I wrote it back then I didnt know that shift `-1 << OFF` cause undefined behavior. But after some lurking on
https://www.open-std.org/pipermail/ub/ (mailing list of standard comity of C++ working on undefined behavior) show that I was wrong.
After some thoughts I think best way to fix it is remove this file all together
It was used in experimental globe shading but finally I didnt used it. I include it because possible future use, but after more than year nobody used it (except for `pch.h` that include all headers).
Same history is for `ShaderRotate`.
This is branch that remove this headers (form VS files and makefiles too):
https://github.com/Yankes/OpenXcom/tree/RemoveTrash