This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/56336] Buggy implementation of stoi, stol, stoll


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56336

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-02-15 06:53:15 UTC ---
I think you could do:
if (__endptr && *__endptr != 0)

instead without the need of the length of the string.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]