libstdc++: Add casts for integer-like difference type [PR107871]
authorJonathan Wakely <jwakely@redhat.com>
Mon, 5 Dec 2022 21:38:53 +0000 (21:38 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 6 Dec 2022 21:38:46 +0000 (21:38 +0000)
commit9cce91a63dcc40cb39e68f6a771e891e51c51946
treea7db307dafe760450366e7c45eecd29e9481d0ae
parent5329e1a8e1480d536ff96283a6556e51112ba470
libstdc++: Add casts for integer-like difference type [PR107871]

libstdc++-v3/ChangeLog:

PR libstdc++/107871
* include/std/format (_Iter_sink::_M_overflow): Add cast to
size_t.
(_Iter_sink<CharT, contiguous_iterator auto>::_M_make_span): Use
typedef instead of decltype.
* testsuite/std/format/functions/107871.cc: New test.
libstdc++-v3/include/std/format
libstdc++-v3/testsuite/std/format/functions/107871.cc [new file with mode: 0644]