dtoa: fix infinite loop.