commit | 82b8c496047b88549a2cce67c3b80fee4a05d0c4 | [log] [tgz] |
---|---|---|
author | Michael Jones <michaelrj@google.com> | Wed Oct 20 13:08:46 2021 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Oct 25 15:05:53 2021 -0700 |
tree | ed8e0d528146723aabe39fe199b17ab65beacc13 | |
parent | e2f5e263f5be982ceb14422bfb8bd00f7083cf44 [diff] |
[libc] fix strtol returning the wrong length Previously, strtol/ll/ul/ull would return a pointer to the end of its parsing, regardless of if it detected a number. Now it will return a length of 0 when it doesn't find a number. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D112176 GitOrigin-RevId: 53804d4eb2866b4741ebf6c76a8bee8580dde259