Fix a bug in dtoa on gcc

Discovered in https://github.com/miloyip/dtoa-benchmark/issues/1 with
assertion fail.