Handle bit_cnt of 0 properly.