Fix wrong error assumption when converting "0.0" to double
authorJoaquim Rocha <jrocha@igalia.com>
Mon, 15 Nov 2010 12:46:40 +0000 (13:46 +0100)
committerHarald Fernengel <harald.fernengel@nokia.com>
Mon, 15 Nov 2010 12:46:40 +0000 (13:46 +0100)
commit759c0b5ecf84201f36d44b4e6c46da1886d85dee
treeaea359a16fae284e563accd1994fe971f38e0df6
parentb36e357b982ba01cbf905fb1d0340e87030b0a95
Fix wrong error assumption when converting "0.0" to double

The function qstrtod calls strtod without first resetting the errno
but verifying it nonetheless. This could lead to situations where
the errno was already set to ERANGE and hence it would mistakenly
assume the conversion could not be done right.

Merge-request: 2507
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
src/corelib/tools/qlocale.cpp