]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: avoid -Wsign-compare
authorJason Merrill <jason@redhat.com>
Tue, 27 Aug 2024 17:17:20 +0000 (13:17 -0400)
committerJason Merrill <jason@redhat.com>
Wed, 28 Aug 2024 11:25:09 +0000 (07:25 -0400)
commit4246cf4f18053eeb47cb2a241fffa9a41573916e
treef73b4ef6bfef1b2ddbccd2a0b0aa9a090d811b8d
parent3f51f0dc88ec21c1ec79df694200f10ef85915f4
libstdc++: avoid -Wsign-compare

-Wsign-compare complained about these comparisons between (unsigned) size_t
and (signed) streamsize, or between (unsigned) native_handle_type
and (signed) -1.  Fixed by adding casts to unify the types.

libstdc++-v3/ChangeLog:

* include/std/istream: Add cast to avoid -Wsign-compare.
* include/std/stacktrace: Likewise.
libstdc++-v3/include/std/istream
libstdc++-v3/include/std/stacktrace