[patch] Leave errno unchanged by successful std::stoi etc
Jonathan Wakely
jwakely@redhat.com
Tue Sep 29 15:55:00 GMT 2015
We set errno=0 in __gnu_cxx::__stoa in order to reliably detect when
it gets set to ERANGE. This restores the previous value when the
conversion is successful.
Tested powerpc64le-linux, committed to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 2430 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150929/96b452c4/attachment.bin>
More information about the Gcc-patches
mailing list