ext/timeouts/timeout-bitops.c:234: bad shift

tor-0.3.1.7/src/ext/timeouts/timeout-bitops.c:234]: (error) Shifting 31-bit value by 63 bits is undefined behaviour

Source code is

for (i = 0; i <= 63; ++i) {
    uint64_t x = 1 << i;

If you are going to shift something by 60+ bits reliably, you need 1UL, not 1.

Trac:
Username: dcb314@hotmail.com