COMPAT: Correct bit_length for 2.6

Small bug slipped in on 2.6.