Avoid integer error in TEST_BITOPS tests
commit10ea3343b52104d9a1f81f2b0ff25e7c0d733fef
authorNick Mathewson <nickm@torproject.org>
Tue, 19 Sep 2017 17:58:35 +0000 (19 13:58 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 19 Sep 2017 17:58:35 +0000 (19 13:58 -0400)
tree7bbafeebb61253161eb1c36c7fa7e6fe4483225f
parent42e12a3537fef04ab77defd6cb5581add439de43
Avoid integer error in TEST_BITOPS tests

If "1" is not 64 bits wide already, then "1 << i" will not actually
work.

This bug only affects the TEST_BITOPS code, and shouldn't matter for
the actual use of the timeout code (except if/when it causes this
test to fail).

Reported by dcb314@hotmail.com.  Fix for bug 23583.  Not adding a
changes file, since this code is never compiled into Tor.
src/ext/timeouts/timeout-bitops.c