]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Use explicit cast to unsigned in std::rotr and std::rotl
authorJonathan Wakely <jwakely@redhat.com>
Thu, 29 May 2025 10:29:38 +0000 (11:29 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 3 Jun 2025 09:53:00 +0000 (10:53 +0100)
commitf12151e527d8d1b39a26b196f3de768c7edce5d0
treebcf0404d7f97b5b1109507b0306b935661b10495
parent036660001db4d38cbd1bc13471714e696fba4e1b
libstdc++: Use explicit cast to unsigned in std::rotr and std::rotl

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.

Reviewed-by: Tomasz KamiƄski <tkaminsk@redhat.com>
libstdc++-v3/include/std/bit