[committed] libstdc++: Fix -Wsign-compare warning in

2024-12-13 Thread Jonathan Wakely
libstdc++-v3/ChangeLog: * include/bits/regex.tcc: Fix -Wsign-compare warning. --- Tested x86_64-linux. Pushed to trunk. libstdc++-v3/include/bits/regex.tcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstdc++-v3/include/bits/regex.tcc b/libstdc++-v3/include/bit

[committed] libstdc++: Fix -Wsign-compare warning in std::string::resize_for_overwrite

2024-09-27 Thread Jonathan Wakely
Tested x86_64-linux. Pushed to trunk. -- >8 -- libstdc++-v3/ChangeLog: * include/bits/basic_string.tcc (resize_for_overwrite): Fix -Wsign-compare warning. * include/bits/cow_string.h (resize_for_overwrite): Likewise. --- libstdc++-v3/include/bits/basic_string.tcc | 2 +-

[committed] libstdc++: Fix -Wsign-compare warning in

2024-07-27 Thread Jonathan Wakely
Tested x86_64-linux. Pushed to trunk. -- >8 -- 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)