[libcxx-commits] [PATCH] D63047: [libc++] Fix leading zeros in std::to_chars
Afanasyev Ivan via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Jun 8 11:22:50 PDT 2019
ivafanas added a comment.
In D63047#1535297 <https://reviews.llvm.org/D63047#1535297>, @zoecarver wrote:
> The example in the bug doesn't work: `std::to_chars(buf, buf + 100, (unsigned long)0xffffffff)`.
>
> Edit: it outputs `0004294967295`.
Hi,
Hmm, are you sure?
I've just tested fixed version of `std::to_chars` and `std::to_chars(buf, buf + 100, (unsigned long)0xffffffff)` produces `4294967295` as expected.
May be you didn't recompile implementation before run lit tests?
Repository:
rCXX libc++
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63047/new/
https://reviews.llvm.org/D63047
More information about the libcxx-commits
mailing list