Fix undefined behaviour.

svn path=/trunk/boost/multiprecision/; revision=84107