libstdc++: Fix build failure on AArch64 ILP32 [PR98370]
authorPatrick Palka <ppalka@redhat.com>
Fri, 18 Dec 2020 16:52:24 +0000 (11:52 -0500)
committerPatrick Palka <ppalka@redhat.com>
Fri, 18 Dec 2020 16:52:24 +0000 (11:52 -0500)
commit22a7e82c200d01d12e34e757e86dc9796a9bf085
tree3ce2454afb6c2561553a70284de18524cd166360
parentd7bab388b818fc21dbb9111311e114ae33e11fff
libstdc++: Fix build failure on AArch64 ILP32 [PR98370]

This should fix a build failure on AArch64 ILP32 due to int32_t mapping
to long int instead of int on this platform, which causes type deduction
to fail in the below call to std::max as reported in the PR.

libstdc++-v3/ChangeLog:

PR libstdc++/98370
* src/c++17/floating_to_chars.cc (__floating_to_chars_shortest):
Provide explicit template arguments to the call to std::max.
libstdc++-v3/src/c++17/floating_to_chars.cc