Re: [PATCH RFA] libstdc++: avoid -Wsign-compare

2024-08-28 Thread Jonathan Wakely
On Wed, 28 Aug 2024 at 10:55, Jason Merrill wrote: > > Tested x86_64-pc-linux-gnu, OK for trunk? OK, thanks. > > -- 8< -- > > -Wsign-compare complained about these comparisons between (unsigned) size_t > and (signed) streamsize, or between (unsigned) native_handle_type > and (signed) -1. Fixed b

[PATCH RFA] libstdc++: avoid -Wsign-compare

2024-08-28 Thread Jason Merrill
Tested x86_64-pc-linux-gnu, OK for trunk? -- 8< -- -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/