Correct number of bits for an index entry.

This will only occur when the maximum index is entry is a power of 2.
Currently there is no failing test, but it is easy to see from the code.