diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-07-26 17:23:03 +0100 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2024-07-28 19:06:02 +0200 |
commit | f3ed8cd8f72240a31d6591f0156ea7d3258b1736 (patch) | |
tree | c1c7619417bbda6c757f87706b97ae4686c47d81 /libjava/classpath | |
parent | b200461e0f3bf6450ec1cf17b4036ff2033607dc (diff) | |
download | gcc-f3ed8cd8f72240a31d6591f0156ea7d3258b1736.zip gcc-f3ed8cd8f72240a31d6591f0156ea7d3258b1736.tar.gz gcc-f3ed8cd8f72240a31d6591f0156ea7d3258b1736.tar.bz2 |
libstdc++: Fix -Wsign-compare warning in <charconv>
Cast ptrdiff_t to size_t to avoid a -Wsign-compare warning. We can check
in __to_chars_i that the ptrdiff_t won't be negative, so that we know
the cast is safe.
libstdc++-v3/ChangeLog:
* include/std/charconv (__to_chars_16, __to_chars_10)
(__to_chars_8, __to_chars_2, __to_chars): Cast ptrdiff_t to
size_t for comparison.
(__to_chars_i): Check for first >= last instead of first == last
for initial sanity check.
Diffstat (limited to 'libjava/classpath')
0 files changed, 0 insertions, 0 deletions