Fix scaling of large decimals on 32-bit architectures.