The implementation of base_uint<BITS>::operator++(int) and base_uint<BITS>::operator--(int) is now safer. Array pn is accessed via index i after bounds checking has been performed on the index, rather than before.
The logic of the while loops has also been made more clear.