mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 22:31:18 -05:00
6a6a6f3670
caught by clang's -fsanitize=shift. A small unsigned int was promoted, according to C's regular promotion rules, to a signed int, it was then left shifted. This sometimes pushed a 1 into the sign bit, which is undefined behaviour. Fixed by using unsigned temporaries.