Re: [PATCH] libstdc++: Use explicit cast to unsigned in std::rotr and std::rotl

2025-06-03 Thread Jonathan Wakely
On Tue, 3 Jun 2025 at 09:23, Tomasz Kaminski wrote: > > > > > On Mon, Jun 2, 2025 at 7:28 PM Jonathan Wakely wrote: >> >> This suppresses some -Wsign-conversion warnings from Clang when >> compiling with -Wsystem-headers. >> >> libstdc++-v3/ChangeLog: >> >> * include/std/bit (__rotl, __ro

Re: [PATCH] libstdc++: Use explicit cast to unsigned in std::rotr and std::rotl

2025-06-03 Thread Tomasz Kaminski
On Mon, Jun 2, 2025 at 7:28 PM Jonathan Wakely wrote: > This suppresses some -Wsign-conversion warnings from Clang when > compiling with -Wsystem-headers. > > libstdc++-v3/ChangeLog: > > * include/std/bit (__rotl, __rotr): Use static_cast for > conversion from int to unsigned. > -

[PATCH] libstdc++: Use explicit cast to unsigned in std::rotr and std::rotl

2025-06-02 Thread Jonathan Wakely
This suppresses some -Wsign-conversion warnings from Clang when compiling with -Wsystem-headers. libstdc++-v3/ChangeLog: * include/std/bit (__rotl, __rotr): Use static_cast for conversion from int to unsigned. --- Tested x86_64-linux. libstdc++-v3/include/std/bit | 4 ++-- 1 fi