commit | a7b97a1f6b9d4993545525fd5cb334ae640ddf45 | [log] [tgz] |
---|---|---|
author | Jonathan Wakely <jwakely@redhat.com> | Mon Nov 28 12:16:21 2022 +0000 |
committer | Jonathan Wakely <jwakely@redhat.com> | Mon Nov 28 16:57:36 2022 +0000 |
tree | cd0c27e74d90c92c6bae08c2ee196c557a52eb61 | |
parent | 7b79fa930917da735f02b4f6911dfbb0a91f9714 [diff] |
libstdc++: Fix std::string_view for I32LP16 targets For H8/300 with -msx -mn -mint32 the type of (_M_len - __pos) is int, because int is wider than size_t so the operands are promoted. libstdc++-v3/ChangeLog: * include/std/string_view (basic_string_view::copy) Use explicit template argument for call to std::min<size_t>. (basic_string_view::substr): Likewise.