diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2022-11-28 12:16:21 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2022-11-28 16:57:36 +0000 |
commit | a7b97a1f6b9d4993545525fd5cb334ae640ddf45 (patch) | |
tree | cd0c27e74d90c92c6bae08c2ee196c557a52eb61 /gcc | |
parent | 7b79fa930917da735f02b4f6911dfbb0a91f9714 (diff) | |
download | gcc-a7b97a1f6b9d4993545525fd5cb334ae640ddf45.zip gcc-a7b97a1f6b9d4993545525fd5cb334ae640ddf45.tar.gz gcc-a7b97a1f6b9d4993545525fd5cb334ae640ddf45.tar.bz2 |
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.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions